| ??? 01/16/03 18:00 Read: times |
#36582 - Memory models & Keil |
Hi people,
I've a question concerning the memory managment by the Keil compiler. I'm linking building in SMALL model. When reading the LST files, I can see that there is some bytes in the DATA segment. These datas seems to be the declarations made in the prototypes functions. I mean that by writing this : void Rectangle (U8,U8,U8,U8); // with U8 = unsigned char then I've 4 overlayable bytes in DATA segment in the LST file. The problem is that with many functions, the DATA segment becomes full and the stack crashs ! 1. is there a way to change the declaration included in a prototype function to XDATA ? 2. More generally, when writting in C, is there a way to automatically declare a variable in XDATA without writting 'xdata U8 variable;' Regards Stephane |
| Topic | Author | Date |
| Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
| RE: Memory models & Keil | 01/01/70 00:00 | |
RE: Keil Code (sic) Browser | 01/01/70 00:00 |



