| ??? 12/09/04 14:24 Read: times |
#82831 - Globals use more memory Responding to: ???'s previous message |
(don't take that subject line too literally!)
2) The overflow is "too many variables", not their use, move some from DATA to IDATA or XDATA. That's not entirely true: Global variables are allocated their memory location permanently, and "hog" that memory forever; nothing can share it. Similarly for statics. Automatic local variables are allocated their memory location only while they are "active" - at other times, the memory space is available for use by other variables. (C51 achieves this by "overlaying"; 'C' compilers for most other architectures achieve this by using the stack) Thus how you "use" the variables does make a difference! |
| Topic | Author | Date |
| 89s52 function sharing. | 01/01/70 00:00 | |
| Try This | 01/01/70 00:00 | |
| emphasis | 01/01/70 00:00 | |
| an idea... | 01/01/70 00:00 | |
| Andy, I tried it | 01/01/70 00:00 | |
| Jolly good! | 01/01/70 00:00 | |
| Error | 01/01/70 00:00 | |
| You need to work on it | 01/01/70 00:00 | |
| reentrant ? | 01/01/70 00:00 | |
| reentrant | 01/01/70 00:00 | |
| non-reentrant | 01/01/70 00:00 | |
| Wow | 01/01/70 00:00 | |
| varaible sharing? | 01/01/70 00:00 | |
| Variable sharing | 01/01/70 00:00 | |
| Overflow | 01/01/70 00:00 | |
| variables, main and ISR | 01/01/70 00:00 | |
| Globals use more memory | 01/01/70 00:00 | |
| Isn't that a global? | 01/01/70 00:00 | |
Globals, ISRs, main, & static | 01/01/70 00:00 |



