Making Compiler in C++

L

leakymail

Hi,
I have a project on Compiler and I have to implement the code, and I
want some suggestions about how can I make code efficient while
implementing Lexical Analyzer, Parser and Intermediate code generation
and as well as to Optimize the generated code.

Thanks in Advance.
 
R

red floyd

Hi,
I have a project on Compiler and I have to implement the code, and I
want some suggestions about how can I make code efficient while
implementing Lexical Analyzer, Parser and Intermediate code generation
and as well as to Optimize the generated code.

By using the right tool for the right job. In this case, use a
lexer/parser generator to generate the parser. Feel free to use C++ for
the semantic portions (or grammar annotations).
 
K

kwikius

Hi,
I have a project on Compiler and I have to implement the code, and I
want some suggestions about how can I make code efficient while
implementing Lexical Analyzer, Parser and Intermediate code generation
and as well as to Optimize the generated code.

Thanks in Advance.

Try

http://llvm.org/

It has automated all the grungy stuff regarding making a compiler and
has comprehensive info and support of optimisation, and it has a C++ API.

Its cool .. !

also could ask on comp.compilers

regards
Andy Little
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,170
Messages
2,570,925
Members
47,466
Latest member
DrusillaYa

Latest Threads

Top