GCC for ARM targets | ||
|
Site movedThis website has been moved to another location. Please update your bookmarks.You will be redirected to the new location (http://www.modularcircuits.com/gcc_arm.htm) in five seconds. Alternatively, you can click on the link above to get to the new location immediately What's includedUsing the following links you can download two versions of the GNU compiler toolset, compiled for the ARM processor target. The toolset runs under Windows, and was compiled using the MinGW environment. The following components are included: GCC 4.0
GCC 3.4.0
GCC 3.3.1
DownloadGCC 4.0
GCC 3.4.0
GCC 3.3.1
GDB and Insight 6.0
Install notesFirst of all, I had no time to test all to tools, so use them at your own risk. If you find a problem, you are welcome to report it to me. I've used the following configure options to compile the tools: GCC 4.0--prefix=c:/gcc-arm-elf-4.0.0 --target=arm-elf --enable-threads --disable-nls --disable-win32-registry --disable-shared --enable-sjlj-exceptions --with-newlib GCC 3.4.0--prefix=c:/gcc-arm-elf-3.4.0 --target=arm-elf --enable-threads --disable-nls --disable-win32-registry --disable-shared --enable-sjlj-exceptions GCC 3.3.1--prefix=c:/gcc-arm-elf-3.3.1 --target=arm-elf --enable-threads --disable-nls --disable-win32-registry --disable-shared --enable-sjlj-exceptionsFrom this you see that the install directory should be 'c:/gcc-arm-elf-4.0.0', 'c:/gcc-arm-elf-3.3.1' or 'c:/gcc-arm-elf-3.4.0' respectively. Though my experience is that the compiler isn't that sensitive for the install path, it appeared to me that the ADA compiler actually requires the files to be in that location. All in all, you can try put the tools into whatever location you whish but if you experience problems, that's one thing to look at. The 3.4.0 and 4.0 versions are too new to have GPC support so the Pascal front-end is missing from those toolsets. Also note that I had some problems generating the ADA runtime library and ADA tools so those are missing from the distribution as well. To install the toolset, do the following:
How to useHere's a simple example to use the toolset. We want to compile a simple application, from two files STARTUP.S and PROGRAM.C: arm-elf-as STARTUP.S -o STARTUP.O arm-elf-gcc -c PROGRAM.C -o PROGRAM.O arm-elf-ld -Ttext 0 -e 0 -Map APPLICATION.MAP -o APPLICATION.ELF STARTUP.O PROGRAM.O arm-elf-objcopy -O binary APPLICATION.ELF APPLICATION.BINHere we created two object files, one from the asm, one from the C source, linked them together (with 0-based executable segment) and extracted the binary image from the output of the linker. This last file, APPLICATION.BIN is the binary image, ready to be downloaded to the targets' memory. |
|
| © 2004 Andras Tantos | ||