It should be like x86 except for int... hmmm... yeah, the debugging
nightmare would be if it's a problem with the C compiler. So it could
be any one of the following:
(a) some place in the code generator doesn't like an int of 2 and it
borks
(b) C compiler miscompiles the code generator due to the way it
interprets C, some lack of information, some kind of shortcut taken or
an internal bug
(c) double type problem due to math library or conversion
(d) ???
Without a debugger, peppering lcode.c with printfs should be fine.