What do you think of this kernel compilation method?
I’ve been exploring a new way to develop my programming language and evolve it gradually alongside my kernel project. While working on NexisK and NexisLoader, I started thinking about the build process itself. Running make all is practical, but it is also generic. It works, but it does not really reflect the kind of system I want to build. That led me to a different idea: what if I created a…
A developer has been experimenting with a novel approach to kernel compilation, aiming to create a compiler within an open-source kernel. This compiler would read a user-created build.nexis file, parse its build syntax, and invoke the Makefile accordingly. The idea is still in its early stages, with several technical challenges ahead.
The developer seeks to define the syntax and design the parser, addressing questions about file access, process execution, and communication with build tools. The project is not about replacing Make but rather experimenting with a different approach to deepen understanding of compiler development, language design, and operating systems.
The build.nexis file could serve as a tool for describing how a project should be built, while the compiler interprets this description and coordinates the required steps.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.