| Class | Voodoo::I386NasmGenerator |
| In: |
voodoo/generators/i386_nasm_generator.rb
|
| Parent: | NasmGenerator |
The i386 NASM code generator generates i386 assembly code for use with the Netwide Assembler.
Function arguments are pushed on the stack in reverse order, so that the first argument is pushed last. Each argument occupies one word of stack space. These arguments are removed from the stack by the caller after the called function returns.
The return value is passed in eax.
Call frames have the following layout:
argn : arg1 arg0 <-- ebp + 8 oldeip <-- ebp + 4 oldebp <-- ebp local0 <-- ebp - 4 local1 <-- ebp - 8 : localn <-- esp
| WORDSIZE | = | 4 |