Use this panel to specify code- and symbol-generation options for the HCS08 Compiler.
The following table lists and describes the language options for HCS08.
| Option | Description |
|---|---|
| Strict ANSI (-Ansi) | Check if you want the C compiler to operate in strict ANSI mode. In this mode, the compiler strictly applies the rules of the ANSI/ISO specification to all input files. This setting is equivalent to specifying the - ansi command-line option. The compiler issues a warning for each ANSI/ISO extension it finds. |
| C++ | With this option enabled, the Compiler behaves as a C++ Compiler. You can select between three different types of C++:
|
| Cosmic compatibility mode for space modifiers @near, @far, and @tiny (-Ccx) | Check to allow Cosmic style @near, @far and @tiny space modifiers as well as @interrupt in your C code. The -ANSI option must be switched off. It is not necessary to remove the Cosmic space modifiers from your application code. There is no need to place the objects to sections addressable by the Cosmic space modifiers. The following is done when a Cosmic modifier is parsed: The objects declared with the space modifier are always allocated in a special Cosmic compatibility (_CX) section (regardless of which section pragma is set) depending on the space modifier, on the const qualifier or if it is a function or a variable. Space modifiers on the left hand side of a pointer declaration specify the pointer type and pointer size, depending on the target. |
| Bigraph and trigraph support (-Ci) | Check to replace certain unavailable tokens with the equivalent keywords. |
| C++ comments in ANSI-C (-Cppc) | Check to allow C++ comments. |
| Propagate const and volatile qualifiers for structs (-Cq) | Check to propagate const and volatile qualifiers for structures. If all members of a structure are constant or volatile, the structure itself is constant or volatile. If the structure is declared as constant or volatile, all its members are constant or volatile, respectively. |
| Conversion from `const T*' to `T*' (-Ec) | Check to enable this non-ANSI compliant extension allows the compiler to treat a pointer to a constant type like a pointer to the non-constant equivalent of the type. Earlier Compilers did not check a store to a constant object through a pointer. This option is useful when compiling older source code. |
| Do not pre-process escape sequences in strings with absolute DOS path (-Pe) | When the -Pe option is enabled, the Compiler handles strings in include directives differently from other strings. Escape sequences in include directive strings are not evaluated. The following example: #include "C:\names.h" results in exactly the same include filename as in the source file (" C:\names.h"). If the filename appears in a macro, the Compiler does not distinguish between filename usage and normal string usage with escape sequence. |