The function of learning notes compilation

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.