56
Programmer’s Guide | Korenix
6-1-1
Compiling Applications and Libraries
To compile a simple C application, just use the aremb-linux-gcc compiler instead of the
regular one:
armeb-linux-gcc –g -02 source-code.c –o output
6-1-2
Tools Available in the Host Environment
The following cross compiler tools are provided:
armeb-linux-ar
Manage archives (static libraries)
armeb-linux-as
Assembler
armeb-linux-c++
C++ compiler
armeb-linux-cpp
C preprocessor
armeb-linux-g++
C++ compiler
armeb-linux-gcc
C compiler
armeb-linux-gprof
Display call graph profile data
armeb-linux-ld
Linker
armeb-linux-nm
Lists symbols from object files
armeb-linux-objcopy
Copies and translates object files
armeb-linux-objdump
Displays information about object files
armeb-linux-ranlib
Generates indexes to archives (static
libraries)
armeb-linux-readelf
Displays information about ELF files
armeb-linux-size
Lists object file section sizes
armeb-linux-strings
Prints strings of printable characters from
files (usually object files)
armeb-linux-strip
Removes symbols and sections from object
files (usually debugging information)