« Last post by mstacho on August 25, 2014, 08:13:11 AM »
As my adventure with the TI MSP430g2553 continues, I'm struck by something: there are only 512 bytes of RAM, compared to the Arduino and Axon II which has some 8KB (at least for the Mega). Strangely, it has 16KB of flash. So I was wondering something: are there tricks to writing large programs (ie: ones that could never fit into RAM but can easily fit in flash) that are used?
I can imagine something like this: write the entire program in flash (including how it WOULD look in RAM once loaded), then write some kind of operating controller that selectively loads/unloads the RAM with the flash data as it is needed. As long as you are doing everything sequentially and interrupts aren't killing you, that should work...right?
I know that we can optimize the code to use LESS RAM, but I'm talking about a case where there is just so much code that even after optimization you still have no hope of loading it all.