Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Languages Misc > Re: issue: RPN,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 9 Topic 1113 of 1193
Post > Topic >>

Re: issue: RPN, TAC+SSA, and x86-style ASM

by Reinder Verlinde <reinder@[EMAIL PROTECTED] > Feb 23, 2008 at 05:35 PM

In article <c05b0$47bfeebb$ca83b482$9782@[EMAIL PROTECTED]
>,
 "cr88192" <cr88192@[EMAIL PROTECTED]
> wrote:

> well, recently I came up with an idea, but it has turned into a bit of a

> mess on me...
> 
> I have an existing C compiler I wrote before, and it is organized about
like 
> this:
> Preprocessor;
> Parser;
> Upper Compiler, converts syntax trees to RPNIL;
> Lower Compiler, converts RPNIL to assembler;
> Assembler;
> Linker.
> 
> so, the upper-compiler ends up being fairly sparse, mostly being a
fairly 
> dumb converter.
> 
> the output, I call RPNIL, is a vaguely Forth or PostScript like language

> representing the intermediate version of the language.
> 
> [lots of info removed]
> 
> or, I can do the basic library (serving as a codegen), and possibly
later 
> write an SSA style frontend (and rework the upper compiler to target it 
> directly).
> 
> 
> anyone have any thoughts?...

Many people have thoughts, but I am not sure what you are looking for. 
What I miss in your description is what exactly you want to achieve. 
Possible answers could be:

- getting to learn how to write a 'real' compiler chain
- getting a better C compiler
- getting a faster C compiler
- fixing known code-generation problems in your existing code

I guess that, in all cases, you will want to look at 
<http://www.llvm.org/>
and <http://clang.llvm.org/>.
It might lead to 
one or more of:

- ideas about organizing your code
- ideas about using LLVM as your intermediate SSA language
- ideas about ditching your code, and start contributing to LLVM

Reinder
 




 9 Posts in Topic:
issue: RPN, TAC+SSA, and x86-style ASM
"cr88192" <c  2008-02-23 20:08:55 
Re: issue: RPN, TAC+SSA, and x86-style ASM
"Rod Pemberton"  2008-02-23 06:53:30 
Re: issue: RPN, TAC+SSA, and x86-style ASM
"cr88192" <c  2008-02-23 22:55:32 
Re: issue: RPN, TAC+SSA, and x86-style ASM
Reinder Verlinde <rein  2008-02-23 17:35:17 
Re: issue: RPN, TAC+SSA, and x86-style ASM
"cr88192" <c  2008-02-24 07:15:19 
Re: issue: RPN, TAC+SSA, and x86-style ASM
Phil Carmody <thefatph  2008-02-24 14:09:15 
Re: issue: RPN, TAC+SSA, and x86-style ASM
"cr88192" <c  2008-02-25 20:27:57 
Re: issue: RPN, TAC+SSA, and x86-style ASM
"robertwessel2@[EMAI  2008-02-25 15:04:32 
Re: issue: RPN, TAC+SSA, and x86-style ASM
"cr88192" <c  2008-02-26 10:46:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 22:33:41 CDT 2008.