The ARM assembler program under Linux

Source: Internet
Author: User

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

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.