Byte code and byte variables (by Sven Schlender)
Hi,
If I get my interpreter for LDmicro byte code to run I will emulate i.e. UART and EEPROM access via some special named variables (like suggested here in an earlier thread).
Just a thought: it would be nice also to have byte variables here, epecially for faster processing on 8-bit machines. You need some more opcodes (especially the variable opcodes: I have counted 10) and you probably have to handle casting between byte and int variables (two more opcodes). What do you think?
Best regards, Sven.
(no subject) (by Jonathan Westhues)
It would be possible, but that would be a fairly major undertaking, since it would be necessary to provide some way for the user to specify whether a variable was 8 or 16 bits, and then to propagate that information all the way from the user interface to the intermediate code to the PIC and AVR (and other) back ends.
I'd thought about this for floating point variables too. I have very little time to work on this program now, so I'm not sure if I'll ever implement it.