lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

It was thus said that the Great Dibyendu Majumdar once stated:
> On Mon, 9 Mar 2020 at 21:37, Sean Conner <> wrote:
> > 
> >   I have worked with TCC (Tiny C Compiler) which can be embedded into a
> > larger context as you can call it as a library.  It does all the steps,
> > lexer, parser, code generation (but very little optimization). The official
> > repo is at <>.
> Does it offer api for each layer?

  No, it does not.  It does allow some control though---the location of the
header files, predefined defines, output format, but no hooks into the
individual portions.  In fact, I don't think it has many internal portions
as it's just a one-pass compiler.

> > > Suggestions welcome. If you know of a great example then I would
> > > appreciate if you can give me a reference to the project.
> >
> >   Hmm ... have you heard of nanopass compilers?
> >
> >
> No, I hadn't. Thank you for the link.

  You're welcome.