??? 12/15/06 01:33 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#129511 - The Stack Responding to: ???'s previous message |
Most CPUs have 1 stack, some have none.
The Compiler is not required to use it. It the case of Keil 8051 the compiler uses it for address only. You break it you bought it. In line asm interfears with the optimizer. It may interfear with the compiler It as very rarly needed. I can oly think of one use for messing with the stack. "Task swiching operations in an interupt". Using it for temporary store is silly ( A Technical term). Again if you have to ask, it is too advanced. The safeist thing to do is 100% asm functions. my 2 cents |
Topic | Author | Date |
Help me for Push and POP in C | 01/01/70 00:00 | |
Here be dragons! | 01/01/70 00:00 | |
Just like inline assembler! | 01/01/70 00:00 | |
Don't do it | 01/01/70 00:00 | |
I suspect this is just not bothering to understand | 01/01/70 00:00 | |
Alternatively | 01/01/70 00:00 | |
It is a bad idea for any cpu | 01/01/70 00:00 | |
If you need a queue, use (write) one | 01/01/70 00:00 | |
Use inline Assembly for this purpose | 01/01/70 00:00 | |
The Stack | 01/01/70 00:00 | |
Task switching![]() | 01/01/70 00:00 | |
Noooo!!!!!! | 01/01/70 00:00 | |
If you write C, then use C ! | 01/01/70 00:00 |