Linux Arm Cross Compiler settings

Source: Internet
Author: User

The arm cross compiler is required to compile arm applications under the host PC (x86).

Although the tool can be compiled from scratch, but it is too troublesome, and generally not necessary.

The compiled binaries that are currently available are primarily provided by the Mentor Graphics.


The main steps are as follows:

1. Download the relevant package

$ wget https://sourcery.mentor.com/GNUToolchain/package12813/public/arm-none-linux-gnueabi/ arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2


2. Unzip

$ tar XF arm-2014.05-29-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2


3. Setting

Append the arm gcc directory to the PATH environment variable in the $HOME/.BASHRC:

Path= $PATH: $HOME/arm-2014.05/bin


4. Use

$ arm-none-linux-gnueabi-gcc/tmp/helloworld.c


Reference:

Http://www.elinux.org/ARMCompilers

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.