P&E Tools Cosmic Software MetaGeek WSN

Cosmic C166 and XC166 Cross Development Tools

Cosmic's toolchain for Infineon's C166 and XC166 microcontroller families is part of a complete and uniform product line incorporating over 20 years of innovative design and development. All Cosmic products include one year of technical support and updates.

Integrated Development Environment

All Cosmic C Cross Compilers for Windows include IDEA - Cosmic's own integrated development environment which is preconfigured for the C166/XC166 family of processors. IDEA is designed specifically for developing embedded applications with Cosmic compilers. IDEA integrates an editor, project manager, graphical smart build/make facility, program analyzer, link file generator, documentation manager and ZAP debugger into one easy to use environment running under Windows 2000 and XP.
Click here for more information about IDEA.

Third Party IDE Integration

Most Cosmic compilers can be easily integrated in third party IDEs such as Borland Codewright and RistanCase Development Assistant for C. Click here for more information.


The C Compiler package includes: an integrated development environment with optimizing ANSI-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. The compiler also supports non-intrusive C source-level debugging with Cosmic's line of ZAP debuggers and most 3rd party hardware..
Click here for general information on Cosmic Compilers.

C166/XC166 Specific features include:
  • ANSI and ISO C Compiler

  • The Cosmic C166/XC166 compiler follows ANSI and ISO rules and conventions. All code and libraries are optimized specifically for the C166/XC166 processor core.
    All C166 and XC166 derivatives and sub-families are supported (also supports ST10 and Super10).
  • Support for MAC in C

  • Using the "mac" variable in C the compiler will automatically generate MAC instructions.
  • Reentrant and Recursive

  • All code is fully reentrant and recursive using standard ANSI stack frame conventions.
  • BIT Variables

  • In addition to Standard ANSI C bit fields, CX166 supports bit variables using the _Bool keyword providing an easy and efficient bit packing mechanism for true/false flags.
  • In-line Assembly

  • The compiler provides three convenient methods for adding assembly code inside a C program. Includes an argument passing mechanism.
  • Absolute Listings

  • Optionally produce relocatable and/or absolute C interspersed with the corresponding Assembly listings.
  • IEEE-754 Floating Point

  • Supports IEEE single floating point formats with full ANSI libraries (Source code included).
  • Moveable Code Feature

  • Moveable code feature is designed to make RAM based code like boot loaders and programmers easy to create and maintain. The Linker automatically creates a segment in ROM to store moveable code. Then at run time, use the supplied library function to relocate and copy the moveable code into RAM for execution.
  • Check Sum Feature

  • 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 Debug Support

  • The Cosmic compiler suite supports the IEEE-695 standard debug format used by many popular emulators and logic analyzers.
  • In-Circuit Emulator Compatibility

  • CX166 is compatible with emulators from Lauterbach.
  • Flexible Compiler Interface

  • Cosmic compilers are designed to be powerful and flexible so they can be used with virtually any environment. Use Cosmic's own IDEA interface or use your favorite editor, make utility and/or source code control system - It's Your Choice!!

ZAP Debugger

ZAP is a full featured source-level debugger available for Windows. ZAP's intuitive graphical interface is uniform for all targets and execution environments. ZAP is available in 2 versions* for the C166/XC166. (1) ZAP SIM Debugger with integrated processor Simulator, (2) ZAP monitor-based debugger for FORTH development boards (not yet released)
Click here for general information about the ZAP debugger.