Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 251352

Forum Post: RE: Too much C code for my MSP430?

$
0
0

So RAM is the main issue? If I define a lot of my "option" bits (meaning true/false or one of four possibilities), would it be smart to put them into one char and mask them out to save space? Or would the trouble of making #define changedUnits 0x02 for every bit in the char make things worse?

Also just how much is 472 spare bytes for my code? How many more lines could I add to the code to fix that? And if I want to decrease that, would I just have to manually take out lines/use compiler optimization?

Thanks,

Matt 


Viewing all articles
Browse latest Browse all 251352

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>