| Related articles |
|---|
| Intermediate forms (again?): worthwhile? nospam@myisp.net (Tony) (2011-01-13) |
| Re: Intermediate forms (again?): worthwhile? cr88192@hotmail.com (BGB) (2011-01-14) |
| Re: Intermediate forms (again?): worthwhile? comp.compilers@inglorion.net (Robbert Haarman) (2011-01-14) |
| Re: Intermediate forms (again?): worthwhile? gene.ressler@gmail.com (Gene) (2011-01-15) |
| Re: Intermediate forms (again?): worthwhile? nospam@myisp.net (Tony) (2011-01-18) |
| Re: Intermediate forms (again?): worthwhile? comp.compilers@inglorion.net (Robbert Haarman) (2011-01-19) |
| Re: Intermediate forms (again?): worthwhile? steshaw@gmail.com (Steven Shaw) (2011-01-19) |
| Re: Intermediate forms (again?): worthwhile? nospam@myisp.net (Tony) (2011-01-19) |
| Re: Intermediate forms (again?): worthwhile? nospam@myisp.net (Tony) (2011-01-19) |
| Re: Intermediate forms (again?): worthwhile? nospam@myisp.net (Tony) (2011-01-19) |
| Re: Intermediate forms (again?): worthwhile? cr88192@hotmail.com (BGB) (2011-01-19) |
| Re: Intermediate forms (again?): worthwhile? cr88192@hotmail.com (BGB) (2011-01-22) |
| Re: Intermediate forms (again?): worthwhile? ehog.hedge@googlemail.com (chris dollin) (2011-01-22) |
| [10 later articles] |
| From: | Steven Shaw <steshaw@gmail.com> |
| Newsgroups: | comp.compilers |
| Date: | Wed, 19 Jan 2011 02:57:36 -0800 (PST) |
| Organization: | Compilers Central |
| References: | 11-01-082 |
| Keywords: | design, code, interpreter |
| Posted-Date: | 19 Jan 2011 11:03:16 EST |
I'd like to second cr88192. i.e. either write a simple interpreter - probably
an AST evaluator since you're not concerned about performance - or compile to
C. Another option is to compile to another HLL. C is kinda high-level but
other choices might be JavaScript (works in browsers and nodejs etc), Java or
C#. If you stay high-level enough, you might be able to compile to something
C-ish and only have small differences to your generator to get Cish->JS,
Cish->Java, Cish->C# etc.
If you want to be close to the metal, as John said, there's LLVM. The new
front-runner.
Another option at some point may be HLVM - a abstraction layer on LLVM as I
understand it. It's currently in early stages and it's primary author seemed
to have dropped it until some recent activity.
Return to the
comp.compilers page.
Search the
comp.compilers archives again.