Development Tools User’s Guide
193
Microengine C Compiler
5
The Microengine supports microcode compiled from C language code to support the Microengines
and their threads. You can create the C code using the DWB GUI or any suitable text editor. You
can then compile and link the code using the GUI or the Compiler command line.
This chapter explains the subset of the C language supported by the Microengine C Compiler and
the extensions to the language to support the unique features of the processor.
For information on the Compiler functions refer to the
Microengine C Compiler Language Support
Reference Manual.
5.1
The Command Line
You can invoke the command line from a command prompt window on your system. Do the
following:
1. Open a command prompt window.
2. Go to the folder containing the C Compiler files, typically:
C:\IXP 2000\bin>
3. Invoke the C Compiler using this command:
uccl [options] filename [filename...]
5.2
Supported Compilations
Two kinds of compilations are supported:
•
To compile one or more C source files (*.c, *.i) into object files (*.obj), use:
uccl -c file1.c file2.c ...
An object containing intermediate (IL0) code is created for each C source file.
•
To compile and link a microengine program, use:
uccl file1.c file2.obj ...
Use any combination of .c source file and .obj object file pairs.
Note:
In the first case, you must use the -c switch in the command line.
Example:
uccl -c file1.c file2.i
Note:
In the second case, do not use the -c switch.