Closed Claus64 closed 8 years ago
Thanks! I think I'd prefer the assembly language memset to reside in its own .S file rather than being implemented as inline asm though. That way we don't need to introduce the zeropage register class to GCC proper just yet, either (it'd be better -- if harder -- to fix the __zp address space modifier instead, I think. Or maybe that's slightly orthogonal.)
I've committed a pure-assembly version of this file. Thanks!
I did this assembly optimization mostly to learn how to do this in general. It does not hurt though and is smaller and faster than the C implementation. This depends on a new zeropage register class added in a second pull request to gcc-src.