??? 03/28/05 12:51 Read: times Msg Score: +1 +1 Informative |
#90532 - - or assembler Responding to: ???'s previous message |
Because the C compiler and linker can overlay local variables much better as any human can do it in assembler.
The linker (at least in Keil) does just as well with assembler modules when the local variables are declated OVERLAYABLE. I use this a lot in my typical C and assembler mixed projects. Initially I had some doubts, but after a few checks. I saw that assembler or C there is no difference in the overlaying. One caveat: In C locals are automatically locals, in assembler, you must declare them as such. Erik |
Topic | Author | Date |
initializing SP to 7FH | 01/01/70 00:00 | |
why? | 01/01/70 00:00 | |
To Oleg & Russell | 01/01/70 00:00 | |
To Mehdi | 01/01/70 00:00 | |
To Mehdi | 01/01/70 00:00 | |
why not | 01/01/70 00:00 | |
for example, please | 01/01/70 00:00 | |
Oleg, why I do similar | 01/01/70 00:00 | |
here they are | 01/01/70 00:00 | |
well | 01/01/70 00:00 | |
well well | 01/01/70 00:00 | |
well, well - done | 01/01/70 00:00 | |
tight SRAM - use C | 01/01/70 00:00 | |
- or assembler![]() | 01/01/70 00:00 | |
Stack pointer | 01/01/70 00:00 | |
external stack | 01/01/70 00:00 | |
why not? | 01/01/70 00:00 | |
SDCC | 01/01/70 00:00 | |
Re:initializing SP to 7FH | 01/01/70 00:00 | |
very old assemblers only | 01/01/70 00:00 | |
Let the assembler do the work! | 01/01/70 00:00 |