Cosmic UK Cosmic US Cosmic Germany Cosmic Italia Cosmic France

Home / Products / NXP S12X and XGATE tools

Cosmic S12X and XGATE C Cross Compiler

NXPô and the NXP logo are trademarks of NXP.

Cosmic Software's C cross compiler for the NXP S12X microcontroller family and XGATE module is the result of decades of design experience coupled with rigorous field testing. The S12X compiler is designed to exploit every advantage of the MCU family to produce the most optimized code possible.

To help designers create stable and reusable code Cosmic's S12X compiler is built to conform to industry code standards such as ANSI/ISO, IEEE-754 and debug standards such as ELF/DWARF and IEEE-695 specifications. Comprehensive standardization ensures compiler compatibility with most third party S12X development tools including. Cosmic's S12X / XGATE compiler is available for use on PCs running Windows (Windows 7, XP and compatible) and UNIX systems running PC-Linux, SUN Solaris and HP-UX.

Compiler Features

The C Compiler package includes: an integrated development environment with optimizing ANSI and ISO C cross compiler, macro assembler, linker, librarian, hex file generator, object format converters, debugging support utilities, run-time library source code, and a multi-pass compiler command driver. Click here for general information on Cosmic Compilers.

  • S12X Processor Core
    The Cosmic S12X compiler generates highly efficient code for the NXP S12X family of microcontrollers including the MC9S12XDP512 and compatible.
  • Integrated XGATE Module support
    Cosmic offers an optional XGATE C compiler add-on to provide integrated and optimized S12X and XGATE C language projects.
  • HC12 and HCS12 Cores
    The Cosmic S12X compiler also provides options to generate highly efficient code for both the HC12 and the HCS12 families of microcontrollers.
  • ANSI and ISO C Compiler
    The Cosmic S12X compiler follows ANSI and ISO rules and conventions. All code and libraries are optimized specifically for each processor core (S12X, XGATE, HCS12, HC12).
  • Reentrant and Recursive
    All S12X, HCS12, and HC12 code is fully reentrant and recursive using standard ANSI stack frame conventions.
  • Bank Switching
    Automated source level support for Code bank switching (Paging) using PPAGE. S12X compiler supports Data bank switching.
  • Moveable Code Feature
    Moveable code feature is designed to make RAM based code such as bootloaders easy to create and maintain. The Linker automatically creates a segment in ROM to store moveable code. Then at run time, the supplied library function is used to locate and copy the moveable code into RAM for execution.
  • Byte EEPROM Support
    Compiler provides transparent support for on-chip EEPROM (library source included). Allocate any C data object(s) to the EEPROM and the compiler takes care of the formatting and programming.
  • In-line Assembly
    The compiler provides three convenient methods for adding assembly code inside a C program. Including an argument passing mechanism.
  • IEEE-754 Floating Point
    Supports IEEE single floating point formats and includes ANSI libraries (with Source code).
  • C Support for Zero Page
    Compiler source extensions provide efficient use of the S12X/HCS12/HC12 direct addressing mode.
  • Absolute Listings
    Optionally produce relocatable and/or absolute C interspersed with the corresponding Assembly listings.
  • Automated Check Sums
    Easy to use check sum facility and library (Source included) allow users to quickly implement an efficient check sum on any or all sections. Check sum calculation and insertion is transparently managed by the linker.
  • Mixed C and Assembly
    Cosmic tools support mixed C and Assembly applications. Including Assembler support for C #defines and #includes. so C and assembly language modules may share common constants and macros.
  • Host Independent Formats
    The Cosmic relocatable and absolute object formats are host independent. This allows user's on PC, SUN and HP to share objects for linking and debugging.
  • IEEE-695 and ELF/DWARF Debug Support
    The Cosmic compiler suite supports the IEEE and ELF DWARF standard debug formats used by most emulators and logic analyzers.
  • Flexible Compiler Interface
    Cosmic compilers are designed to be powerful and flexible so they can be used with virtually any development environment. Use Cosmic's own IDEA interface or use your favorite editor, make utility and/or source code control system - It's Your Choice!!

In-Circuit Emulator Compatibility
Cosmic's S12X compiler is compatible with emulators and BDM debuggers from Cosmic Software (ZAP BDM), I-Systems, Lauterbach, NOHAU, Noral and P&E Micros.

OS Compatibility
Cosmic S12X/HC12/HCS12 compiler is compatible with most CPU12 operating systems and real-time kernels including specific ports from CMX, MicroC/OS-II and OSEK vendors.

Graphical Programming Environments (UML)
Cosmic HC12/HCS12 Compiler is fully compatible with I-Logix's Rhapsody in C graphical programming environment. Rhapsody in C provides software synthesis, melding the graphical model and design parameters to generate production-quality, highly efficient and readable code, small enough to fit on 8- and 16-bit microcontrollers.


Contact Cosmic