| ??? 02/26/11 10:21 Read: times |
#181323 - The meaning of 'const' in ANSI 'C' Responding to: ???'s previous message |
Per Westermark said:
But why do you force a constant char to be stored in the code segment? Have you checked if you save any code size by making the constant into a physical entity stored in the flash, compared to being just a numeric value defined by #define or inside an enum {...} block? Isn't this one of the differences between C and C++ ? Doesn't C++ treat (or have the ability to treat) a 'const' much like an ANSI C #define or enum...? |
| Topic | Author | Date |
| Multiple public definitions in code banking | 01/01/70 00:00 | |
| single const byte in code | 01/01/70 00:00 | |
| The meaning of 'const' in ANSI 'C' | 01/01/70 00:00 | |
| Yes | 01/01/70 00:00 | |
| Keil C51 isn't a C++ compiler | 01/01/70 00:00 | |
| Coding Standard Rules - Netrino | 01/01/70 00:00 | |
| Rule #2 is a bit broken or at least incompletely formulated | 01/01/70 00:00 | |
| issue with #define usage | 01/01/70 00:00 | |
| extern const code declaration | 01/01/70 00:00 | |
| Insufficient detail | 01/01/70 00:00 | |
| Conceptually wrong | 01/01/70 00:00 | |
| Thanks, it's working ! | 01/01/70 00:00 | |
| Why? | 01/01/70 00:00 | |
correction | 01/01/70 00:00 | |
| Fundamental 'C' programming error! | 01/01/70 00:00 |



