As i did not find a special forum for linker i am posting my linker and compiler questions combined
Question1:
How does the C55x compiler or linker manage a library,recently when i have tried to compile my code i have not seen the symbols of the un used functions
is that my compiler is so intelligent and it will not include the function which i am not using ?
if that is so the libraries that TI provide like dsplib etc if the entire libarary is included only functions called will be taken to the final ROM image ?
may be problem with my way of observation of map file
Question2:
when i was using the pragma
#pragma DATA_SECTION(spxScratch, ".myheap"); static char spxScratch[17000];
and in the linker file i have specified
MEMORY { . . SARAM2 (RWIX) : origin = 0x039000, length = 0x016E00 . . } SECTIONS { . . .myheap: > SARAM2 . . }
but still the global array is alocated under the section of bss ,so i tried to remove the static before it even then also the compiler committed the mistake why so ?