Hacker News new | ask | show | jobs
by pebers 3029 days ago
Perhaps they mean that within those 1.6 million lines, the only frontend is Clang? But the line count for gcc includes e.g. gfortran as well?
1 comments

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/

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