|
|
Subscribe / Log in / New account

Two compilers before MES

Two compilers before MES

Posted Aug 14, 2024 12:53 UTC (Wed) by FransFaase (guest, #172898)
Parent article: Pulling Linux up by its bootstraps

The article does not mention that stage0 contains two compilers for minimal sets of C before MES is compiled. The first is written assembly and thus CPU specific. The second, which also contains a driver program that includes a pre-processor, is written in C-like language of the first.

I personally feel that MES is the odd fellow in the whole chain of compilers and I have been looking into whether it would be possible to reduce the number of steps. It turned out that the M2 compilers are kind of buggy. So, I have been thinking about a stack based language with which it would be possible to write a C compiler that can be used to compile TCC.

See https://www.iwriteiam.nl/Software.html for what I have been working on, including some attempts to generate a webpage with all the sources that are used to compile stage0.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds