Data Types Supported By the Thunk Compiler

The thunk compiler supports some C data types as parameters, return values, or both. The following data types are supported as function parameters:

The following data types are supported as function return values:

Note  The int data type is 16 bits wide in 16-bit code and 32 bits wide in 32-bit code. In 32-bit to 16-bit thunks, variables of type int are first truncated from 32 bits to 16 bits (less than 65536), then sign-extended to 32 bits upon return. Likewise, in 16-bit to 32-bit thunks, variables of type int are first sign-extended to 32 bits, then truncated to 16 bits on return.