Windows arm-elf-GCC)

Source: Internet
Author: User

In order to use the GCC compiler in windows, I always wanted to compile arm-elf-GCC in cygwin, But after more than a month, it still failed. I don't know where to start if I want to modify the translation errors. For the sake of Quick Start, use the GNU arm tool chain.
Several websites are introduced:
Download the GNU arm tool chain from www.gnuarm.com, which contains newlib. You can directly use the standard C library.
Download make under Windows from www.steve.org. uk
Unxutils.sourceforge.net downloads Bash. Previous scripts are all written under cygwin, so a bash is required. Otherwise, CP and RM won't be used. In fact, Steve also provides bash, but his cp parameter is different from that in cygwin. This is found in order not to change the script.
1. Download install tools link:
GNU arm: http://www.gnuarm.com/bu-2.15_gcc-3.4.3-c-c++-java_nl-1.12.0_gi-6.1.exe
Make: http://www.steve.org.uk/Software/make/make.zip
Bash: http://unxutils.sourceforge.net/UnxUtils.zip
2. Install Tool

GNU arm: Install it directly. My installation path is C:/gnuarm.
Make: extract make.exe from make.zipto c: \ gnuarm \ bin.
Bash: Decompress all files in unxutils.zip \ USR \ Local \ wbin to C: \ gnuarm \ bin.
3. Note
To prevent non-compilation in the future, it is recommended that there be no spaces in the installation path.
Do not use the GCC-4.1 toolchain for the moment. If cygwin is not present, GCC prompts that the DLL is missing
Do not use the GCC-4.0 toolchain for the moment, do not recognize the mapcs-32 when testing, but do not know what the default is
The GNU arm can be directly used with the Linux library compiled by newlib for arm. However, some memory-related functions must be used during compilation for reference in the LD file.

When I use printf, the following error occurs: C:/gnuarm/ARM-elf/lib/libc. A (syscils. O )(. text + 0x69c): In '_ sbrk': Unknown undefined reference to 'end'

Make the following changes in the LD script.
. BSS:
{
_ Bss_start = .;
* (. BSS) * (common );
 Provide (END = .);
_ Bss_end = .;
}

Http://blog.21ic.com/user1/2983/archives/2008/53368.html

Http://www.gnuarm.com/

Http://sourceforge.net/projects/unxutils

Http://unxutils.sourceforge.net/

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.