Re:6502 back end for LLVM [video]
by codedokode on Sunday November 12, 2023 @05:00AM
(#38238898)
As I know, LLVM uses 32-bit registers and operations even if you have a type like u8 or u16. Is this problem solved, or bool and u8 will still use 4 bytes on 6502?
[ Parent
| on HN ]
Re:6502 back end for LLVM [video]
by bigcheesegs on Sunday November 12, 2023 @05:18AM
(#38238985)
LLVM does this on x86 because partial register writes don't break dependency chains in many cases, meaning that you can get stalls due to false dependencies.
There's nothing in LLVM itself that makes it use larger sizes, it just depends on the ABI and what's fastest when ABI doesn't matter.