Hacker News new | ask | show | jobs
by ptitSeb 1120 days ago
I was a bit doubtfull of that claim about RV64 code compacity compared to x86_64, so I tried myself. I used 2 of projects https://github.com/ptitSeb/stuntcarremake and https://github.com/ptitSeb/hydracastlelabyrinth.git and I built them with default option, in release mode on both RV64 and x86_64 to compare the generated file size. For StuntCarRemake: RV64: 191248 x86_64: 260616 For HydraCastleLabyrinth: RV64: 652984 x86_64: 693312

And yeah, RV64 is indeed more compact than x86_64!

2 comments

Just remember to ignore file size, and check text (code) section with binutils's "size" instead.
Science!