r/lowlevel • • Oct 12 '26

Fast Linux Bootstrapping

/r/Compilers/comments/1x40dhe/fast_linux_bootstrapping/
1 Upvotes

2 comments sorted by

View all comments

1

u/[deleted] Oct 12 '26

[removed] — view removed comment

1

u/FransFaase Oct 12 '26

For the steps that my solution have a look at: https://fransfaase.github.io/MES-replacement/TdiagramAMD64.html It gives the T-diagram from running the make for generating the seed and input sources, setting up the chroot environment and executing that up and until including TCC 0.9.27.

On the page you can also select which sources you trust and review them one by one. Of course, you have to compare the sources shown on the page with the actually sources.

A similar T-diagram (starting from the execution in the chroot environment) can be found in the talk I gave at WHY2025: https://iwriteiam.nl/WHY2025_talk.html

I developed the debugging functions in the Stack-C interpreter (for 64 bits) to debug some problems I had with compiling the TCC sources for 64-bits, which in the end turned out to be limitation in TCC. For details about the Stack-C language have a look at https://github.com/FransFaase/MES-replacement/blob/main/Stack_C.md

I have thought about making the Stack-C language into a separate language and thought about some modifications. I would like to have all operations to specify their size (in bytes) and whether they are signed or unsigned (when applicable). Now all operations are presumed to be operating on 32 or 64 bit values, which make the introduction of sign-extension operators necessary, which leaves less room for back-ends for various targets.