28 ms·
So how does the LLVM C backend work then? https://github.com/JuliaHubOSS/llvm-cbe https://github.com/JuliaHubOSS/llvm-cbe
by twic 3y ago
So how does the LLVM C backend work then?
https://github.com/JuliaHubOSS/llvm-cbe https://github.com/JuliaHubOSS/llvm-cbe
- jcranmer 3y agoIt just doesn't support some features, and cheats in other areas. (At a quick glance, there's no support for invoke instructions, and the awkward floating-point types makes it go "oh, let's just use long double and hope it's correct for this platform").
- TazeTSchnitzel 3y agoAs a contributor to that project: with great difficulty. There are so many unfixed bugs and horrible workarounds and it will never generate good or even standards-compliant code. C and LLVM IR are both monsters with hundreds of subtle traps for the unwary, but at least C to LLVM IR is a well-trodden path with a friendly gradient. The reverse is an uphill struggle against entropy.