3 ms·
> Implementing a complete C ABI (with struct arguments and returns) is incredibly tricky, and not really a lot of fun. This is so true. Rust does it here: http
by sanxiyn 6y ago
> Implementing a complete C ABI (with struct arguments and returns) is incredibly tricky, and not really a lot of fun.
This is so true. Rust does it here: https://github.com/rust-lang/rust/tree/master/compiler/rustc_target/src/abi/call https://github.com/rust-lang/rust/tree/master/compiler/rustc... and it's a lot of code for no good reasons.
- randomNumber7 6y ago+1 I plan to write a toy compiler and considered llvm. This one thing is the reason I will never use llvm for a hobby project. Even for non-toy compilers, I think it's a waste of human resources that every frontend has to implement the C ABI.
- burlesona 6y agoWhy does LLVM work that way?
- parkovski 6y agoThis is surprising for me, I thought LLVM abstracted away platform ABIs.