4 ms·
You do not have to deal with the generated C, simply consider it the IR. The main benefit of generating C over LLVM IR is portability: C is supported by far mo
by turbolent 3y ago
You do not have to deal with the generated C, simply consider it the IR.
The main benefit of generating C over LLVM IR is portability: C is supported by far more systems than LLVM can target.
For example, it enables porting Rust applications to Mac OS 9 (https://twitter.com/turbolent/status/1617231570573873152 https://twitter.com/turbolent/status/1617231570573873152), or porting Python to all sorts of operating systems and CPUs (https://twitter.com/turbolent/status/1621992945745547264 https://twitter.com/turbolent/status/1621992945745547264).
The main "goal" of w2c2 so far has been allowing to port applications and libraries to as many systems as possible.
For more information, see the README of w2c2.
- IshKebab 3y agoYou do have to deal with the generated C though. Unless you just generate it and throw it away?