4 ms·
How does it compare to pcc and tcc?
by ryanpcmcquen 9y ago
How does it compare to pcc and tcc?
- dane-pgp 9y agoFrom 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/msg00103.html https://lists.gnu.org/archive/html/tinycc-devel/2017-05/msg0...
- earenndil 9y agoCan you then compile a new version of gcc with that old gcc? Or are there more steps in between?
- dane-pgp 9y agoAccording to: http://gcc.gnu.org/install/prerequisites.html 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
- alexfru 9y agoIt's less complete in terms of the language and needs less memory. smlrc.c runs in 96KB of RAM on a PIC32 MIPS microcontroller.