We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, i am develope a code in LPC2214 the max.RAm size is 16K,but i have a code,that size is exceeds 16K.I want to reduce my Data section in PRogram,for that purpose i used the #IFDEF preprocessor, even that also not reduce the data section size,it reduce only the code section size.
So, please sujjest me how to reduce the RAM size on C programming.
You are entirely missing the point!
The things that use up data memory are the variables that you define in your program.
If you are defining too many and/or too large variables, then it is up to you to determine where the excess is! The compiler cannot do this for you!
You need to look at the map file to determine what's using all the memory - and what you can remove and/or reduce.