Skip to content

Binary translation

Choose a tag to compare

@fwsGonzo fwsGonzo released this 09 Dec 17:00
· 132 commits to main since this release
35228df

Initial binary translation using embedded TinyCC as just-in-time compiler

$ ./laemu ../tests/programs/coremark.elf 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 16665649
Total time (secs): 16.665649
Iterations/Sec   : 12000.732765
Iterations       : 200000
Compiler version : GCC14.2.0
Compiler flags   : -O3 -DPERFORMANCE_RUN=1  
Memory location  : Please put data memory location here
			(e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 12000.732765 / GCC14.2.0 -O3 -DPERFORMANCE_RUN=1   / Static
Program exited with code 0

Note: Binary translation currently uses and-masking for memory ops, which means that permissions aren't enforced. It's all writable, but still sandboxed.