Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

asm is lisp

Name: Anonymous 2011-12-02 13:09

When i look at my gcc -S anus.c produced asm code i see that each method has a ret at the end, even the main.

How does it know to ret to the _main method rather than exit the program?

Name: Anonymous 2011-12-02 20:47

>>7
You just allocate space for them in a section, or on the stack at run-time.

For a struct you need to allocate the fields in the correct order.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List