??? 02/28/11 13:45 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#181335 - Conceptually wrong Responding to: ???'s previous message |
Why the xxx do you duplicate identical code in two code banks?
If the code (or const data) is identical and needed in both banks, then it should have been in the common memory region instead. Or do you have any bonus program where it is advantageous to consume more flash memory? And as Andy did note in an earlier post - do you understand the implication of defining and declare a variable? Do you realize why the header may mention the existence of a variable, while the variable itself should be in a c file? |
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 |