1.GNU Build Environment
Unzip the compilation tool and add the environment variable path
2. Use of compile-related commands
Compile command arm-linux-gcc-g-c-o led.o main.o led.c main.c//Understanding static compilation and compiling only non-linked usages
Link command arm-linux-ld-tled.lds-o led.elf led.o MAIN.O//Use script file Led.s to link
Disassembly command arm-linux-objdump-d-S led.elf//If you add the-G option at compile time, you can get more detailed disassembly code here
Format Conversion Command Arm-linux-objcopy-o binary led.elf led.bin//Convert elf format files to binary format that can be downloaded to flash execution
Read the file Information command arm-linux-readelf-a led.elf/-D led.elf (view the libraries involved in the file)
3. Compilation Grammar See blog http://7090376.blog.51cto.com/7080376/1264642
Http://blog.chinaunix.net/uid-21457204-id-1826253.html
The ARM assembler program under Linux