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.

Linking/ Sources of C library

Dear all,

I am using the OMAP L138 CPU (ARM9 + DSP 674x dual core).

On the DSP, we have a task running at 125us, which requires careful optimization of computation time. We have used the L2 memory as 50% cache 50% data, and put quite some effort in linking all relevant functions in L2 mem, to get rid of DDR RAM and cache load time. Recently I noticed that there are some library functions inserted by the Compiler (e. g. __push_rts und __pop_rts) which would be very interesting to link in L2.

Is there a linker file Syntax to put single functions in a different place? AFAIK only sections, and from the map file it seems that all library functions are in .text


Is the source code of the library available, to that we can add the linking information?

Thanks for any hint.

  • Alexander,

    YEs, the source for the RTS library is available in the compiler release under the folder path ccsv6\tools\compiler\c6000_7.x.xx\lib. Specifically the __push_rts and __pop_rts functions are part of the push.asm file under the src folder under that path.

    the functions already seem to be defined with sections ".text:__pop_rts" and".text:__push_rts" so you can place them in L2 memory by using those section names


    Regards,
    Rahul