News for hackers. Stuff that matters.
Re:A minimal C compiler in x86 assembly by matthews2 on Tuesday May 03, 2022 @08:00AM (#31247250)
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.
Re:A minimal C compiler in x86 assembly by arinlen on Tuesday May 03, 2022 @10:24AM (#31248695)
One of the projects adopted by the bootstrappable community is maintaining GCC 4.7.

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)."

Re:A minimal C compiler in x86 assembly by userbinator on Tuesday May 03, 2022 @09:20AM (#31247925)
You would need to compile the newer versions with the older versions. The first C++ compiler was probably written in C.
Re:A minimal C compiler in x86 assembly by User23 on Tuesday May 03, 2022 @10:35AM (#31248841)
Interestingly enough, Cfront[1] was written in C++.

[1] https://en.wikipedia.org/wiki/Cfront

Re:A minimal C compiler in x86 assembly by cardiffspaceman on Tuesday May 03, 2022 @12:51PM (#31250537)
A trope of old-school compiler development is, "We made our language self-hosting, and then we compiled it by hand."
Re:A minimal C compiler in x86 assembly by sylware on Tuesday May 03, 2022 @10:34AM (#31248829)
"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.

Re:A minimal C compiler in x86 assembly by Stevvo on Tuesday May 03, 2022 @11:04AM (#31249214)
Terry A. Davis? I thought you got hit by a train?