Compiling Esterel for the Lego
You can use the program lego_light.strl to test your setup.
Go to the demo directory (assuming lego_light.strl is there, and compile Esterel into C:
$ cd ~/robos-1.0/demo
- Compile Esterel into C:
~/robos-1.0/demo$ ~/esterel-lego/esterelv5_21/bin/esterel -LLego lego_light.strl
(Obiously you can put ~/esterel-lego/esterelv5_21/bin in your path if you don't want to type this command all the time).
- Now compile the C into the Lego machine language:
make lego_light.lx
Disregard all the warnings: the automatically-generated C code is not very clean. - Upload the code to the Lego as usual:
../util/dll lego_light.lx
