gaston feng |
Apr 12, 2008 11:46:02 PM
| Sourcery G++ Data Sheet | |
| Register for a Sourcery G++ Evaluation | |
| Buy Sourcery G++ Today! |
| Announcements | |
| Discussion |
| ARM Toolchains | |
| ColdFire Toolchains | |
| Power Toolchains |
Looking for previous releases?
CodeSourcery's Windows packages are directly executable. After downloading the package, you can double-click on the file to start the interactive installation program.
On UNIX-like systems, run the following commands:
bunzip2 arm-2007q3-platform.tar.bz2
tar xf arm-2007q3-platform.tar
where platform indicates the combination of the host and target operating system selected above.
On Windows, the installer will give you the option to add the compiler to your PATH automatically. If you do not use that option, or if you are running on GNU/Linux or Solaris, you must add the bin subdirectory of the installation directory to your PATH.
All command names begin with a prefix indicating the target system; for example, arm-none-eabi. The examples below all use arm-none-eabi as the prefix; if you have installed a different toolchain, you should adjust the prefix accordingly. For a native toolchain (a toolchain where the host and target systems are the same), you can omit the prefix.
The C compiler is arm-none-eabi-gcc. The C++ compiler is arm-none-eabi-g++. To compile a C program test.c and produce an executable program use the command:
arm-none-eabi-gcc test.c -o program
To compile a C++ program test.cc and produce an executable program.exe use the command:
arm-none-eabi-g++ test.cc -o program
Additional documentation is available in the info subdirectory after installation. If you have the GNU info reader installed, you can use the command:
info -f ./info/gcc.info
to read the manual for the GNU C and C++ compilers.
If you experience problems you may wish to check the FAQ for a list of common problems and solutions.
Comment:
(no reply)