Standard Types Settings Dialog Box

Use the Standard Types Settings dialog box to define the size to associate with each ANSI C standard type. You can also use the -T: Flexible Type Management compiler option to configure ANSI-C standard type sizes.

Note: Not all formats may be available for a target. In addition, there must be at least one type for each size. For example, it is invalid to specify all types to a size of 32 bits. Also, the HIWARE Format does not support a size greater than 8 bits for the char type.

The following listing lists the rules that apply when you modify the size associated with an ANSI-C standard type:

Listing: Size Relationships for the ANSI-C Standard Types.
sizeof(char)  <= sizeof(short)
sizeof(short) <= sizeof(int)

sizeof(int)   <= sizeof(long)

sizeof(long)  <= sizeof(long long)

sizeof(float) <= sizeof(double)

sizeof(double)<= sizeof(long double)

Enumerations must be smaller than or equal to int.

Use the signed checkbox to specify whether the char or enum type must be considered as signed or unsigned for your application.

The Defaults button resets the size of the ANSI C standard types to their default values. The ANSI C standard type default values depend on the target processor.

Figure 1. Standard Types Settings Dialog Box

Standard Types Settings Dialog Box