Steps
1 defining the required input values
2 defining the actions performed on the input values
3 defines how the output value is generated and how the output value is passed to the program that issued the call.
Defining input values
Using registers
Using Global variables
Using stacks
. Type Func1, @function
FUNC1:
Back to Main program
Put the result in one or more registers
Place the result in the global variable memory location.
. Type area, @function
Area
fldpi
Imull%EBX,%EBX
MOVL%EBX, value
Filds value
Fmulp%st (0),%st (1)
Ret
The virtual memory address that Linux assigns to the program runs starts at 0x80480000 and ends at 0XBFFFFFFF. Low Address
is the program data and instructions. The instruction contains not only the code of the assembler, but also the chain of the Linux running program.
Instruction information required for the next process.
Above is the stack address block.
The function of learning notes compilation