Instructions

All the instructions of the C language are implemented.

The support for the switch instruction has been developed by Josef Pavlik. This support is especially effective and implements different strategies for code generation, depending on case values.

This implementation only supports case-values that can be coded with 8 bits (eg: these values must range from -128 to 255, and -1 and 255 are aliases). For this reason, long or long long case selectors are truncated to int before executing the code selection. I have decided to keep this feature because this is not a severe limitation, and it allows to guarantee high speed and compact code, witch are the main specificities of the switch statement..



AG 2013-04-10