XGC Technology

sales@xgc.com
Fax +44 1483 433312


The Compiler


The GCC-1750 is based on Version 2.8.1 of the GNU C Compiler (GCC). It generates code that executes directly on any computer that conforms to the MIL-STD-1750A specification, and offers options to support the draft 1750B.

Diagram of compiler

Language Features

The GCC-1750 compiler supports both C and C++ programming languages and offers several extensions to ANSI C. These include in-line assembly statements, 64-bit integer types, complex arithmetic. Assembly language inserts may be mixed with high level language statements to give access to low-level machine features such the 1750’s XIO instruction.

The combination of high quality generated code and the ability to safely mix assembly language statements with C or C++ means that the benefits of using a high level language are available to the widest range of applications.

Phases of Compilation

The compiler's front ends incorporate lexical, syntax and semantic analysis, and translate the source code into the compiler's intermediate language - RTL.

RTL may be optimized or fed directly to the code generator, where it is further analyzed in terms of the target computer's instruction set. The code generator writes the assembly language file, where target instructions are represented using the target's assembly language.

The compiler offers many command line options to control optimization, the level of checking and reporting, debugging, listing, tracing and so on.

Links

The Compiler User Manual