Újabb fordító teszt: epcompress -raw -m3 kimenetének a kicsomagolása. A forrás file (amit ennél jobban is meg lehetett volna írni
):
[ Guests cannot view attachments ]
[ Guests cannot view attachments ]
Assembly verzió:
[ Guests cannot view attachments ]
[ Guests cannot view attachments ]
Fordítás:
sjasm m3d_test.s m3d_test.com
zcc +enterprise -create-app -O3 -otest_m3d test_m3d.c -lm
sdcc -mz80 --code-loc 0x0200 --data-loc 0x4000 --stack-loc 0xf800 --opt-code-speed test_m3d.c
ihx2ep test_m3d.ihx loader.bin test_m3d.comA bemeneti file és az időméréshez használt script:
[ Guests cannot view attachments ]
[ Guests cannot view attachments ]
Az eredmény (a z88dk-s program azért ennyire nagy, mert tartalmaz egy 12288 byte méretű statikus tömböt), csak a decompressData rutin futásideje:
[ Guests cannot view attachments ] (assembly): 0.435 másodperc
[ Guests cannot view attachments ] (SDCC): 1.943 másodperc
[ Guests cannot view attachments ] (z88dk): 5.402 másodperc