Related articles |
---|
[24 earlier articles] |
Re: What's lacking: a good intermediate form bartc@freeuk.com (Bartc) (2009-03-06) |
Re: What's lacking: a good intermediate form comp.lang.misc@inglorion.net (Robbert Haarman) (2009-03-06) |
Re: What's lacking: a good intermediate form tony@my.net (Tony) (2009-03-06) |
Re: What's lacking: a good intermediate form cr88192@hotmail.com (cr88192) (2009-03-07) |
Re: What's lacking: a good intermediate form tony@my.net (Tony) (2009-03-06) |
Re: What's lacking: a good intermediate form max@gustavus.edu (Max Hailperin) (2009-03-07) |
Re: What's lacking: a good intermediate form pertti.kellomaki@tut.fi (Pertti Kellomaki) (2009-03-09) |
Re: What's lacking: a good intermediate form pertti.kellomaki@tut.fi (Pertti Kellomaki) (2009-03-09) |
Re: What's lacking: a good intermediate form bobduff@shell01.TheWorld.com (Robert A Duff) (2009-03-10) |
Re: What's lacking: a good intermediate form bartc@freeuk.com (Bartc) (2009-03-11) |
Re: What's lacking: a good intermediate form tony@my.net (Tony) (2009-03-10) |
Re: What's lacking: a good intermediate form pertti.kellomaki@tut.fi (Pertti Kellomaki) (2009-03-12) |
Re: What's lacking: a good intermediate form pertti.kellomaki@tut.fi (Pertti Kellomaki) (2009-03-12) |
[3 later articles] |
From: | Pertti Kellomaki <pertti.kellomaki@tut.fi> |
Newsgroups: | comp.compilers |
Date: | Mon, 09 Mar 2009 09:55:38 +0200 |
Organization: | Compilers Central |
References: | 09-02-132 09-02-136 09-02-144 09-03-003 09-03-010 09-03-019 09-03-023 09-03-034 |
Keywords: | tools |
Posted-Date: | 10 Mar 2009 15:28:42 EDT |
Tony wrote:
> I don't want:
>
> LLVM lex->LLVM parse->AST->LLVM IL->assembly or machine code for any CPU
And you are not very likely to get it, because there is no such
thing as "LLVM lex" or "LLVM parse".
> I want:
>
> lex->parse->AST->x86 assembly or machine code
>
> where lexing and parsing into the prescribed AST is the work of my own
> frontend code and the transformation into assembly or machine code is
> done by the backend "product".
So what's wrong with the following?
(your code): lex -> parse -> AST -> LLVM IL
(LLVM): LLVM IL -> x86 binary
I think you are still erroneously conflating LLVM with its frontends
like llvm-gcc and clang. It is perfectly possible to utilize LLVM
as if it were the system's native assembler. Simply make your compiler
generate a text representation of the IL, and use LLVM's command line
tools to produce the native executable.
--
Pertti
Return to the
comp.compilers page.
Search the
comp.compilers archives again.