This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to add linker file when using command line

Hi All,

            I am using lm3s9b96 in my project through command line options.

My questions are

1) How do we tell the linker to use the linker file lm3s9b96.cmd

2) I have managed to do a complete build but I am not sure which linker file i.e. lm3s9b96.cmd it is using. I say this because I tried removing the linker files from Program Files\Texas Instruments\ccsv4\arm\include and it still builds. So I want to know which liner file it is taking.

 

          Thanks very much.

          Mohsin

 

  • Mohsin,

    Mohsin said:
    1) How do we tell the linker to use the linker file lm3s9b96.cmd

    If this linker command file is specified in the link command, it will use it. The linker will process all command files passed to it in the command line in the order that it sees them.

    Mohsin said:

    2) I have managed to do a complete build but I am not sure which linker file i.e. lm3s9b96.cmd it is using. I say this because I tried removing the linker files from Program Files\Texas Instruments\ccsv4\arm\include and it still builds. So I want to know which liner file it is taking.



    If there is no linker command file passed to the linker, it will use a default memory model based on the device being built for, and a default allocation algorithm. Please refer to the TMS470 Assembly Language Tools Users Guide for more information on the default allocation. Either way the link map file is the best place to check how the sections have been allocated and that can help provide a comparison for cases where linker command file has been specified and where it has not.

  • Thanks for your reply. Just to confirm how do we specify the linker file lm3s9b96.cmd

     

     --run_linker  lm3s9b96.cmd

    or

     --run_linker  --library=lm3s9b96.cmd

     

            Thanks,

            Moshin

  • Specify linker command file as:
    --run_linker  lm3s9b96.cmd

    --library is used for specifying the runtime library.