|
Re: How much memory is there really?
Due to the linker methodology, each individual file can only declare up to 256 bytes of dynamic memory, things like lookup tables are constant, as you noted and should be done with rom qualifiers so they are stored as constants in program memory and not in the variable space. It's just a limitation imposed by the way things are linked together, it's not often a problem unless you use a lot of variables or large arrays. What you're doing is the proper solution to the problem, by making the table a constant.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!
I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
|