Hacker News new | ask | show | jobs
by valarauca1 3034 days ago
The GCC addons (gcc-fortran, gcc-cobal, and gcc-go) just convert the existing language into C that is just ingested into the standard GCC. It was only around 2008 that gcc-c++ stopped doing the internal translation/name mangling dance and gained native first party support [1].

Much like how the older versions of GCC used to just produce ASM files to be ingested into GAS to create the binary objects.

[1] https://lwn.net/Articles/542457/

2 comments

The link you posted has nothing to do with how GCC does codegen. It is about GCC transitioning itself from being written in C to being written in C++.
GCC IR is not C