A few simple concept notes

Source: Internet
Author: User

1. Re-positioning

The assembler produces a target program that contains at least three extents, that is, the text area, the data area, and the BSS area. The text area typically includes code and constants for the program, the data area typically holds global variables, and the BSS is used to store uninitialized variables or as a public variable storage space. In a target file, its text area starts with address 0, followed by the data area, followed by the BSS area. To run the program, it must be loaded into memory, so the addresses of these zones need to be rearranged in memory, that is, relocation.

2. Linker and Loader

The linker resolves an external memory address problem, and the loader puts all executable target files into memory for execution.

A few simple concept notes

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.