Forums

IAR .sfr files

Started by cmdamour July 26, 2006
Does anyone know the purpose of the .sfr files in the 430/config
directory (same directory as the linker command files?) The only
mention of them that I found in the IAR documentation is that they are
there.

I noticed that the .xcl files do not define segments for
non-initialized absolute data, does the linker use these files to
define the DATA16_AN segment? Thanks in advance.

Chris

Beginning Microcontrollers with the MSP430

cmdamour wrote:
> Does anyone know the purpose of the .sfr files in the 430/config
> directory (same directory as the linker command files?) The only
> mention of them that I found in the IAR documentation is that they are
> there.

They are used by the C-SPY simulator.
> I noticed that the .xcl files do not define segments for
> non-initialized absolute data, does the linker use these files to
> define the DATA16_AN segment? Thanks in advance.

No, they are automatically defined by the compiler when you use located
variables using the "@" or "pragma location". You do not have to speicy
them in the linker command file (the .xcl file) since the address is
already known.

The same goes for XXX_AC segments. _AN stands for "absolutely placed
no_init", _AC means "absolutely placed constants".

-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.