4 ms·
GCC 11 and newer requires a C++11 compiler, 4.8 was the first to require C++ at all, and I think that there are some very old versions of GCC that can be built
by matthews2 4y ago
GCC 11 and newer requires a C++11 compiler, 4.8 was the first to require C++ at all, and I think that there are some very old versions of GCC that can be built with a pre-standard C compiler.
- userbinator 4y agoYou would need to compile the newer versions with the older versions. The first C++ compiler was probably written in C.
- User23 4y agoInterestingly enough, Cfront[1] was written in C++. [1] https://en.wikipedia.org/wiki/Cfront https://en.wikipedia.org/wiki/Cfront
- cardiffspaceman 4y agoA trope of old-school compiler development is, "We made our language self-hosting, and then we compiled it by hand."
- arinlen 4y agoOne of the projects adopted by the bootstrappable community is maintaining GCC 4.7. https://bootstrappable.org/projects.html https://bootstrappable.org/projects.html From the Projects section: > "We propose to collectively maintain a subset of GCC 4.7 to ensure that we can build the foundation of free software distributions starting with a simple C compiler (such as tinyCC, pcc, etc)."
- sylware 4y ago"just compiling" gcc means to have all its SDKs dependencies satisfied too... g++ 4.7.4 is the last g++ written in simple C. In theory, you should be able to compile all gccs above 4.7.4 (with their SDKs) with g++ 4.7.4 (Last time I tried I was successful with a gcc10 for x86). I wonder who are the "geniuses" who pushed the gcc steering committee to move gcc to C++98 (the pedophile Epstein?). That said, the C based dialect required to compile a linux/*bsd kernel is no better either. As for my personal opinion: much of open source software is now corpo-grade trash, but unlike toxic abominations like windoz/rottenfruitOS/etc, it is free as in free beer and heavily customizable. Choose: plague or cholera.
- Stevvo 4y agoTerry A. Davis? I thought you got hit by a train?