As bitfileds in the VPL2-to-aesl compiler are filled from the msb, the aseba compiler must generate LARGE_IMMEDIATE loads which take 4 bytes, while if these bitfields would be filled from lsb, a SMALE_IMMEDIATE load would be sufficient for most cases, saving a lot of bytecode for VPL2 code.
One a simple line following program in simple mode (3 event-actions pairs, with one event and one action each), this would reduce the bytecode usage from 38% to 34%.
As bitfileds in the VPL2-to-aesl compiler are filled from the msb, the aseba compiler must generate
LARGE_IMMEDIATE
loads which take 4 bytes, while if these bitfields would be filled from lsb, aSMALE_IMMEDIATE
load would be sufficient for most cases, saving a lot of bytecode for VPL2 code.