??? 02/25/08 13:26 Modified: 02/25/08 13:30 Read: times |
#151396 - cases Responding to: ???'s previous message |
re 'const' in data space I see two uses
1) There may be a memory mapped I/O that you want to protect from writes. Then specifying it 'const' will, while it by no means is 'constant' protect you from writing to it. 2) you have a functionn that, for throughput reasons, you want to 'know' the memory space a variable is in. If such a function (this would be typical for a message output routine) works from both constants and variables it will run faster if the variable(s) are always in the same memory space. Erik |