News for hackers. Stuff that matters.
Re:Cpm65: CP/M for the 6502 by homarp on Wednesday October 05, 2022 @05:40PM (#33101547)
see also https://llvm-mos.org/wiki/Rationale

"As for the code itself, we perform a remarkably effective loop optimization that detects 16-bit index operations that can be converted to a 16-bit index plus an 8-bit offset. The latter is a directly-supported addressing mode on the 6502, and 8-bit index manipulation can be done in a single instruction.

This allows us to convert idiomatic 16-bit "int c" loops into something much more suitable for the 6502. Eventually, we hope that optimizations of this kind will transform standard, naive C code into tightly optimized 6502 code. "

There are no comments on this comment yet.