compiler-development

How can I make my own C++ compiler understand templates, nested classes, etc. strong features of C++?

It is a university task in my group to write a compiler of C-like language. Of course I am going to implement a small part of our beloved C++. The exact task is absolutely stupid, and the lecturer told us it need to be self-compilable (should be able to compile itself) - so, he meant not to use libraries such as Boost and STL. He also do...

Compiler Optimizations Questions

What are some of the ways a compiler eliminates repeated subexpressions recomputations? How do you keep track of the sub-expressions? And How do you identify the repeated ones? Besides the usage of bitwise operators, what are some of the strength reduction techniques common compilers use? ...

Does Loop Fission Work in Single Cores?

When does it make sense to use Loop fission/distribution if I am compiling for a single core processor? ...

What is the A-Normal Form?

I was reading about various intermediate forms but I cant get information about A-normal forms besides the wiki-like entries. Does anyone here know about this or has good resources about it? ...

How do I implement forward references in a compiler?

I'm creating a compiler with Lex and YACC (actually GNU Flex and Bison). The language allows unlimited forward references to any symbol (like C#). The problem is that it's impossible to parse the language without knowing what an identifier is. The only solution I know of is to lex the entire source, and then do a "breadth-first" parse, ...

Create A Compiler For Windows

Possible Duplicate: Learning to write a compiler I'm learning C++ and as I know C++ is a very flexible language, it can make OS's and compilers, like the Python and the Ruby compilers, but I want to build my personal programming language, then I need some good tutorial for do this, I will be very happy if you can help me. ...

Compiler that recognize different-different languages and send them to their corresponding compilers. Possible ?

I was thinking whether it is possible to bridge asp.net, php and java to form a single page. Actually i dont need any such thing as of now. It was just an idea that stiked to my mind as some features of some languages are good and some features or some other languages are good, so i was thinking what if i combine all these features into...