Timeline for What happens when I call exit() from my program?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 14, 2014 at 2:22 | comment | added | Jesse Laning | Ah, well I haven't looked into arduino on such a low level, for that information you might want to check the atmel website. | |
| Feb 14, 2014 at 2:05 | comment | added | asheeshr |
Good to know. I was looking for something more detailed and at a lower level. On calling exit(0) the disassembled instructions are (IIRC) __stop_program, cli and a spinlock. I wanted to verify if that is correct with an explanation of how the control is passed i.e. call stack pop?, ISR call?
|
|
| Feb 14, 2014 at 1:48 | history | edited | Jesse Laning | CC BY-SA 3.0 |
added 42 characters in body; added 13 characters in body
|
| Feb 14, 2014 at 1:42 | history | answered | Jesse Laning | CC BY-SA 3.0 |