Self-cultivation of programmers-reading notes (2)

Source: Internet
Author: User

3 What's in the target file?

3.1 Destination file format

1) executable files: PE (Windows) and ELF (Linux) are variants of the COFF format. The destination file (. obj,. o) takes the same format.

2) Dynamic link library: (Windows. Dll,linux. So)

3) Static link library: (. lib,. a)

3.2 What is the target file?

1) Benefits of partitioning data segments and code snippets: 1. The code snippet is set to read-only to prevent false writes. 2. Increase cache Hit ratio (data cache and instruction cache). 3. When multiple processes, only one piece of code saves memory.

3.3 Digging. O

1) objdump-h SIMPLE.O Print the basic information of each segment (contents means that the file actually exists)

Size SIMPLE.O The sizes of each segment

Objdump-s-D SIMPLE.O (-S individual segment hex print,-D to decompile the instruction segment)

Self-cultivation of programmers-reading notes (2)

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.