News for hackers. Stuff that matters.
Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by ryanpcmcquen on Friday October 13, 2017 @06:40PM (#15469680)
How does it compare to pcc and tcc?
Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by dane-pgp on Friday October 13, 2017 @08:20PM (#15470018)
From a bootstrapping or Diverse Double-Compiling point of view, the real question is "Can compiler Y compile compiler X?"

As of a few months ago, it is possible to compile (an old, non-C++ version of) gcc with tcc, which is a good position to be in:

https://lists.gnu.org/archive/html/tinycc-devel/2017-05/msg0...

Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by earenndil on Friday October 13, 2017 @08:50PM (#15470088)
Can you then compile a new version of gcc with that old gcc? Or are there more steps in between?
Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by dane-pgp on Saturday October 14, 2017 @11:54AM (#15472683)
According to:

http://gcc.gnu.org/install/prerequisites.html

"versions of GCC prior to 4.8 also allow bootstrapping with a ISO C89 compiler and versions of GCC prior to 3.4 also allow bootstrapping with a traditional (K&R) C compiler."

So you might need to build tcc -> gcc 3.3 -> gcc 4.7 -> gcc 7.2

Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by ptspts on Sunday October 15, 2017 @11:09AM (#15477420)
Can't we skip gcc 3.3?
Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by earenndil on Wednesday October 18, 2017 @05:46PM (#15503493)
You mean tcc -> gcc 4.7 -> gcc 7.2?

I don't think that would work because gcc 4.7 is written in c++.

Re:SmallerC – Small, Simple, Self-Compiling, Single Pass C C... by alexfru on Saturday October 14, 2017 @03:00AM (#15471110)
It's less complete in terms of the language and needs less memory. smlrc.c runs in 96KB of RAM on a PIC32 MIPS microcontroller.