4 ms·
Some of that can be gleaned from this benchmark, published in Byte, in 1981: https://en.wikipedia.org/wiki/Byte_Sieve https://en.wikipedia.org/wiki/Byte_Sieve
by self 4y ago
Some of that can be gleaned from this benchmark, published in Byte, in 1981: https://en.wikipedia.org/wiki/Byte_Sieve https://en.wikipedia.org/wiki/Byte_Sieve
Results for a few 8/16 bit processors are here (and on subsequent pages): https://archive.org/details/byte-magazine-1981-09/page/n193/mode/1up https://archive.org/details/byte-magazine-1981-09/page/n193/...
- FullyFunctional 4y agoVery cool. While obviously not ideal, the results are probably accurate within a small factor. Unfortunately there's no assembly version for 65C02 but Z80 does surprisingly well in this test. I muse what could be done with modern cross-compiler (SAT solving for optional code sequences?) A llvm backend for Z80 has recently kicked back into gear: https://github.com/jacobly0/llvm-project https://github.com/jacobly0/llvm-project
- mysterymath 4y agoI ran the C version of this benchmark using llvm-mos's Clang for the 6502. The results: 21.4 seconds 5793 bytes Which is middle of thepack for the Z80 benchmarks, but well below the 6502 ones. We're also using a slightly tweaked embedded printf written in C, so this could probably be improved somewhat there, sans any compiler changes.
- bpye 4y agoWow, I didn't realise there was a project to add a 6502 target to LLVM. Now to get Rust working...
- mysterymath 4y agohttps://github.com/mrk-its/rust-mos https://github.com/mrk-its/rust-mos