#8504 - sealFin - Sat Jul 12, 2003 2:43 pm
Quick query - I haven't seen it explicitly stated anywhere, but am I right in assuming that declaring a global variable as a 'const' tells the compiler to put it and the value it has been declared as holding into ROM, not RAM?
Also, what is the usual latency for accessing data in the ROM? Ie. would the memory saved by putting a 'sqrt()' look-up table on ROM be outweighed by the loss in speed as compared to putting the look-up table in RAM?
_________________
sealfin
:sigh: Yes, I know seals don't have fins...
Also, what is the usual latency for accessing data in the ROM? Ie. would the memory saved by putting a 'sqrt()' look-up table on ROM be outweighed by the loss in speed as compared to putting the look-up table in RAM?
_________________
sealfin
:sigh: Yes, I know seals don't have fins...