I have started reading the source code of clang
and zig-lang
.
Unfortunately, the source codes are complicated and I am not able to find out where is frontend of these compilers are called in the main function.
In clang
, the closer place I have found is here but it does not look like processing the compilation frontend.
In zig-lang
, the main function is even messier and very hard to understand. I just could find the de facto main function (main0) here.
Though, explaining the stages of these compilers and pointing to their code is appreciated, just the point of where frontends computations are called is sufficient for me.