Difference Between 16 and 32bit Platforms 
Top Previous Next 
Some Tibbo platforms are of the 16bit type and some — of the 32bit type. This difference goes beyond a simple line in the product specification, it affects how Tibbo BASIC and C compilers deal with integer extension.
32bit platforms Everything is simple on 32bit platforms. All calculations are 32bit calculations, always. Sure, the result may get truncated to fit in the receiving variable, but internally all calculations are performed using 32bit registers.
16bit platforms The situation is trickier on 16bit platforms. By default, all calculations are performed using 16bit registers. This doesn't affect any 8 and 16bit calculations. Here is an example:
Now here is the example of calculations that require the use of 32bit arithmetic:
What happened? Calculating 50000*60000 requires the result to be stored in a 32bit register, and on 16bit platforms the compiler defaults to using 16bit registers. To make things right, just mix in at least one 32bit variable. This will tell the compiler to upgrade the calculation to 32 bits:
