Wei Dongshan embedded first phase of the study notes DAY_4--8_4_ compilation and machine code

Author: GWD time: 209.7.5

First, the course content:
1, generate assembly code, and then analyze assembly code.
2, Q: how to generate assembly code?
A: Add the following statement in the makefile
Here Insert Picture Description
3, assembly code analysis
Here Insert Picture Description
Line 7: the address [pc, # 20] is assigned the value of the register r1, [pc, # 20] represent address plus PC 20, PC = 0 + 8 = 8 so is the address 1C - 0x56000050;
1), the meaning of each column of
Here Insert Picture Description
the machine code is the bin file code;
what 2) PC is a pointer? Equal to the current position of the code byte + 8 byte;
Here Insert Picture Description
two, learning points
three code :( no)

Guess you like

Origin blog.csdn.net/gongweidi/article/details/94761785