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.
Hi All,
I badly want to reduce flash consumption. Below are the options I tried to clean up code:
1. Reduce repetitive code into functions. Here I let away performance to memory.
2. Remove unused functions
3. Moved many large initialized to NULL global array and structure variables into a contiguous memory section of RAM and initialize them at once using memset at startup.
Are there any other methods using which I can reduce flash consumption?
Environment: TMS320F28335, Code Composer Studio v3.3, Code Generation Tool v5.1.3
Regards,
Krishna
Hi Krishna,
Presumably you are already using the compiler option to optimise for size?
Regards, Tony.
Hi Tony,
I don't want to use compiler/linker supported optimization. It sometimes causes trouble the way code behaves.
I'm exploring more on doing it manually with no optimization features from compiler/linker enabled.
Regs,
Krishna
Given those limitations, no one who watches this forum can help you. I'd recommend some other forum to try. But I'm not sure of that either.
Thanks and regards,
-George
Hi George,
Can you please suggest some forum where I can post this question.
Regs,
Krishna
I don't want to use compiler/linker supported optimization. It sometimes causes trouble the way code behaves.
Probably your time would be better spent on learning how to write your code so that optimization turned on in the compiler/linker will not influence your codes behavior instead of learning how to optimize code yourself.
Relativity said:Can you please suggest some forum where I can post this question.
Try the C2000 device forum. I should have suggested this before. I overlooked the fact that you are using a C2000 device. Sorry.
Thanks and regards,
-George