|
|
||||||||||||||||||||
Resources
Mailing Lists
Lite Edition
|
Download the ColdFire 2008q1 ReleaseLooking for previous releases? InstallationCodeSourcery'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 freescale-coldfire-2008q1-platform.tar.bz2 tar xf freescale-coldfire-2008q1-platform.tar where platform indicates the combination of the host and target operating system selected above. Getting StartedOn 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, m68k-elf. The examples below all use m68k-elf 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 m68k-elf-gcc. The C++ compiler is m68k-elf-g++. To compile a C program test.c and produce an executable program use the command: m68k-elf-gcc test.c -o program To compile a C++ program test.cc and produce an executable program.exe use the command: m68k-elf-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. |
|||||||||||||||||||
|
||||||||||||||||||||