I am using CCS 5.3 with BIOS V5.42.0.7 to compile code for our TMS320C6701 DSP. Due to our RAD-HARD requirement, I cannot use any external memory. So far, we have managed to fit within the 64K code/data space of the DSP.
Note, switching from CCS V3.3 to CCS V5.3 reduced our code size and sped up our response times. We are guessing that CCS V5.3 makes more use of parallel processing in the DSP.
We just started adding trig functions for processing data and noticed that the amount of available code space dropped drastically. We have been clawing back some of the unused code space and managed to get back to 6800 bytes. We are not done adding new code so I would like to further optimize the code size.
The current compiler/linker settings are:
-mv6700 --abi=coffabi -ms3 -g --define="CHIP_6701"
I guess I could turn off all debugging info, this would save me ~2400 bytes. This might need to happen if we get stuck.
The map file indicates that both the divd lib function is included as well as the divf library function. These chew up 1824 bytes and 832 bytes respectively. My variables are declared floating point type.
So why is divd included in the compile?
Is there a way to avoid pulling in the divd lib?
Regards, Bill.