3 ms·
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/stuntcarrem
by ptitSeb 3y 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 https://github.com/ptitSeb/stuntcarremake and https://github.com/ptitSeb/hydracastlelabyrinth.git 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!
- brucehoult 3y agoScience!
- snvzz 3y agoJust remember to ignore file size, and check text (code) section with binutils's "size" instead.