aseba-community / thymio-vpl2

Next generation VPL for Thymio using Qt Quick from Qt 5.x
GNU Lesser General Public License v3.0
2 stars 5 forks source link

VPL2 compiler currently generates dead code #29

Open stephanemagnenat opened 7 years ago

stephanemagnenat commented 7 years ago

Currently, the VPL2 compiler generates enterX dead code.

One a simple line following program in simple mode (3 event-actions pairs, with one event and one action each), not generating this code would reduce the bytecode usage from 38% to 33%.

On the long run, the Aseba compiler should remove dead code by itself, but it is harder to implement (although much more general) than not generating the dead code in the first place.