View unanswered posts | View active topics It is currently Fri Apr 26, 2024 3:34 pm



Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3
 Thoughts about a high-density ISA 
Author Message

Joined: Wed Nov 20, 2019 12:56 pm
Posts: 92
NorthWay wrote:
I don't really have any suitable compressed data to test it with, but I think it should be equivalent.

EDIT: No, that was a buggy attempt. Halted at 70.


There's a little chunk of (headerless) compressed data here:
https://github.com/robinsonb5/EightThir ... 4/Firmware
If it uncompresses to a brief message then some Lorem Ipsum text...

Shaving off even a further two bytes is still pretty cool!


Sun Apr 17, 2022 8:38 am
Profile

Joined: Sat Feb 02, 2013 9:40 am
Posts: 2095
Location: Canada
That 68k code is pretty impressive.

174 bytes. I found a LZ4 decompression routine for RISCV and ported it to Thor. It turned out to be 174 bytes in size, but I blew 16 bytes saving and restoring the registers that were used. Still the 68k code was much more compact. I wonder if that is generally the case for a wide variety of apps. I have not tested it yet.

_________________
Robert Finch http://www.finitron.ca


Sun Apr 17, 2022 12:45 pm
Profile WWW

Joined: Thu Jan 17, 2013 4:38 pm
Posts: 53
robfinch wrote:
That 68k code is pretty impressive.

...and sometimes you win the staring competition with the abyss.
I haven't gotten as far as testing it yet, but after waving my fist at it for most of Saturday I am pretty confident I got it down to 66 bytes. That is still with a 2-byte penalty for the format being small-endian and a 4-byte penalty for not using 68020+.

Optimizing for size can be detrimental to optimizing for speed; with more common code executed you can be sure to have known (beneficial) states.


Sun Feb 26, 2023 7:09 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page Previous  1, 2, 3

Who is online

Users browsing this forum: Applebot and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software