4 ms·
this did occur to me while reading the post - why not just generate assembly from the specifications? What's the point of the intermediate translation to C?
by amw-zero 5y ago
this did occur to me while reading the post - why not just generate assembly from the specifications? What's the point of the intermediate translation to C?
- hzhou321 5y agoSo each tool can stack on top of another tool.
- curryst 5y agoAssembly is specific to the architecture, potentially in non-trivial ways. They either have to manually write support for each CPU architecture, or they need a higher level abstraction language. C is basically that higher level abstraction language. The tooling also helps. C compilers do some pretty fancy optimizations. Again, they can either re-implement that inside their tool, or they can just output C and use the existing tools.