Cosmic UK Cosmic US Cosmic Germany Cosmic Italia Cosmic France

Cosmic Software Frequently Asked Questions

How do I force the compiler to check for ANSI C prototypes?

Cosmic compilers adhere to the default ANSI behavior that requires compatibility with older C implementations by allowing functions without prototypes. However, we strongly urge everyone to use and check for prototypes. Missing or mismatched prototypes can cause many unexpected and difficult to find problems. All Cosmic compilers include an option on the preprocessor (cp) to check for prototypes. This can be done by simply adding the option +proto (-pp) to your command line or configuration file (.cxf) or selecting "Force Prototyping" in the miscellaneous compiler options tab in IDEA.
 cx6812  +proto -vl  + debug file.c
 cx6812  -pp   -vl  + debug file.c