[Mono-list] Novel Proposal for Mono Compiler Implementations

Wesley Felter wesley@felter.org
Tue, 10 Jul 2001 19:35:24 -0500 (CDT)


On Wed, 11 Jul 2001, David Gardner wrote:

> are. Would you envisage that it would be faster to write a compiler
> according to the 'parsetree + emitter' scheme as opposed to the
> 'monolith' scheme? It's worth further discussion.

That's how most compilers are already written. The difference is that the
stages cannot be run separately, either to discourage proprietary tools
(GCC) or to protect "trade secrets" (most proprietary compilers).

SGI's Pro64 compiler stores an intermediate representation in .o files and
the linker does the rest of the compilation so that it can do IPA.

And speaking of interprocedural analysis, for those who are proposing
install-time compilation: Should Mono compile each assembly separately? In
that case you couldn't inline across assemblies, but a JIT could.

Wesley Felter - wesley@felter.org - http://felter.org/wesley/