tyfkda / xcc

Standalone C compiler/assembler/linker/libc for x86-64/aarch64/riscv64/wasm
https://tyfkda.github.io/xcc/
MIT License
269 stars 18 forks source link

Consider runtime memcpy impl #82

Open tyfkda opened 3 years ago

tyfkda commented 3 years ago

https://github.com/tyfkda/xcc/blob/36a19c184de1912fceff15e58034c99045e26553/src/cc/ir.c?_pjax=%23js-repo-pjax-container%2C%20div%5Bitemtype%3D%22http%3A%2F%2Fschema.org%2FSoftwareSourceCode%22%5D%20main%2C%20%5Bdata-pjax-container%5D#L424

tyfkda commented 1 year ago

x86-64: rep stosb

performance - How can the rep stosb instruction execute faster than the equivalent loop? - Stack Overflow