Forums

question regarding linkers options for project

Started by harshit suri November 6, 2003
hi

the IAR assembler tutorial says to set the following
Linker options

in the menus
Project -> Options -> Xlink -> include 
it says to toggle overide default and specify
first.xcl as teh linker command file.

1)What does this do?

2) And do i have to stick to this option for all my
projects?
(the assembler says that this file was designed for
assembler only projects)

3)Is everybody using this file?

4)I tried changing the file to 
$TOOLKIT_DIR$\icc430\msp430F149A.xcl
and i still was able to link.

I noticed a similar need to specify a file for the
C-Spy debugger options as chip description file
$TOOLKIT_DIR$\cw430\msp430F149.ddf

Thanks for your help.


__________________________________


Beginning Microcontrollers with the MSP430

Hi!

> the IAR assembler tutorial says to set the
following
> Linker options
>
> in the menus
> Project -> Options -> Xlink -> include
> it says to toggle overide default and specify
> first.xcl as teh linker command file.
>
> 1)What does this do?

The linker command file bascially contains a description of the memory
layout of your processor, with descriptions on where you would like to
place different memory segments.  In addition, it controls the size of
the stack and heap (used by "malloc" and friends).

The Embedded workbench contains a large number of predefined linker
command files for a large number of targets.  However, if you would
like to make changes to adopt it to your application then you can copy
the file in question, modify it, and tell EW to use it by using the
option you mentioned.

> 2) And do i have to stick to this option for all
my
> projects?
> (the assembler says that this file was designed for
> assembler only projects)

No, you can have one linker command file per project, as long as you
make sure to copy it and modify the copy.


> 3)Is everybody using this file?

You must use some kind of linker command file, but for some the
default will suffice.


> 4)I tried changing the file to
> $TOOLKIT_DIR$\icc430\msp430F149A.xcl
> and i still was able to link.

NO, DON'T!  Never change the original file, always make a copy!!!


> I noticed a similar need to specify a file for the
> C-Spy debugger options as chip description file
> $TOOLKIT_DIR$\cw430\msp430F149.ddf

This file describes the chip to C-Spy.  However, there is no need to
change this file, typically you just use the one that the EW suggest.

    -- Anders