??? 12/13/06 07:13 Read: times |
#129382 - How 'C' systems start. Responding to: ???'s previous message |
Linda Trioz said:
while simulating the program doesn't start from main, it is jumping to other function. 'C' systems never actually start from main(). main() is a function that has to be called from its environment. With Keil, the very first thing that is executed from the reset vector is the startup.a51, or equivalent. This then calls some other stuff that handles things like intialising variables, etc. Finally, all this 'C' runtime startup calls your main() function. However - none of this has anything to do with why you need inline assembler! See: http://www.8052.com/forum/read.phtml?id=129336 |
Topic | Author | Date |
Help me for inline assembly | 01/01/70 00:00 | |
wait a min! | 01/01/70 00:00 | |
Explain! | 01/01/70 00:00 | |
Help me for inline assembly | 01/01/70 00:00 | |
How 'C' systems start. | 01/01/70 00:00 | |
how to link the assembled file | 01/01/70 00:00 | |
You still haven't said | 01/01/70 00:00 | |
RTFM | 01/01/70 00:00 | |
Keil C51 and the SRC directive | 01/01/70 00:00 | |
Before you go there... | 01/01/70 00:00 | |
sometimes inline assembler is because | 01/01/70 00:00 | |
Heh. | 01/01/70 00:00 | |
absolutly! | 01/01/70 00:00 | |
To Access Stack | 01/01/70 00:00 | |
Why ? | 01/01/70 00:00 | |
not necessarily | 01/01/70 00:00 | |
That's my line! | 01/01/70 00:00 | |
Still ... | 01/01/70 00:00 | |
I think ... | 01/01/70 00:00 | |
The only useful information on the stack ... | 01/01/70 00:00 | |
Yes, but... | 01/01/70 00:00 | |
Not want, but have to![]() | 01/01/70 00:00 |