S12Z Compiler > Code Generation

Use this panel to specify the code generation compiler behavior.

The following table lists and describes the code generation compiler options for S12Z.

Table 1. Tool Settings - S12Z Compiler > Code Generation Options
Option Description
Memory Model This option allows to specify the memory model. The options available are: Small, Medium (default), and Large.
Bit field byte allocation from LSB to MSB (right-to-left) By default, bit allocation in byte bitfields proceeds from the least significant bit to the most significant bit. This produces less code overhead in the case of partially- allocated byte bitfields.
  • MSB: Most significant bit in byte first (left to right)
  • LSB: Least significant bit in byte first (right to left)
Bit field type size reduction This option is configurable whether or not the compiler uses type-size reduction for bitfields. Type-size reduction means that the compiler can reduce the type of an int bitfield to a char bitfield if it fits into a character. This allows the compiler to allocate memory only for one byte instead of for an integer.