Intermediate forms (again?): worthwhile?

"Tony" <nospam@myisp.net>
Thu, 13 Jan 2011 23:53:30 -0600

          From comp.compilers

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)
[16 later articles]
| List of all articles for this month |
From: "Tony" <nospam@myisp.net>
Newsgroups: comp.compilers
Date: Thu, 13 Jan 2011 23:53:30 -0600
Organization: TeraNews.com
Keywords: analysis, question
Posted-Date: 14 Jan 2011 01:33:07 EST

As a language designer/developer, I feel like I'm in between the
proverbial rock and hard place. I'm A-OK with doing the "front end" of
the compiler, but the "back end" is "kinda scary" for me. To "spill", my
path is, currently, compiling to assembly language (am I naive?). I mean,
it's "simple", right? What can go wrong, having full control (ignore
multi-platform compatibility, for it is NOT in my requirement now)?


My question is, or is in the area of, intermediate representations and
backends and code generation. Optimization is NOT AT ALL my concern
(read, I don't do compilers, I do my language, and "ain't it great that
computers are so fast now!").


Clarification: I got to here from disenchantment/unenamorment with
existing HLLs (yep, every one of them). I like the freedom afforded by
writing to the hardware level for my language's
initial/prototype/reference output. I have looked at (well, "you know
me", cursory inspection) LLVM and GCC, but get the feeling it throws me
back from where I started.


Am I making any sense? Almost (S/N, get off the sauce and be on-topic in
MY thread) all replies are welcome.
[If you don't plan to do much optimization, you don't need a complex
internal form. For a really simple compiler, you can often just make a
tree for each statement, then walk the tree to generate the code and
throw the tree away. Or if you're clever enough, emit the code directly
from the parser. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.