I really help you to do this.
Can any one give me some source code of building a compiler? I badly need it, yet I prefer it in Java or C++?
http://gcc.gnu.org/ describes how to get the source for the GCC series of compilers.
Reply:Compliers are pretty complicated. You can examine the source code of the GCC (GNU Compiler Collection) if you want to try and figure it out. If you want to write a parser and compile your own language, you could learn BNF and use Bison++ (a parser generator).
If you just need to compile the compiler, not write it (not sure why), then you can just do that with GCC or any other open source compiler.
paid survey
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment