Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

hemp

Compiler

This topic is 6175 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
Guest Anonymous Poster
The question you asked is ridiculously broad. I think what you''re getting at is how can a compiler be made to be better than the previous if its only built with a previous compiler. Well, compilers are generally programmed in assembly, about the most basic form of computing. Assembly works on the same level as the computer. Nothing is automated. You write directly to the memory and read directly from the memory. Although a compiler CAN be written in other languages, but don''t ask me how that works.
How do you write the assembly compiler? (called an assembler), well assembly is just a frontend if you like for hexadecimal (hex) code. Assembly just makes things slightly easier to think about. This is truly as low as you can go. This, although often helped by the operating system, is as low as you can go, and is interpreted by the computer itself.
At the computing level, its almost mechanical, only using electric currents instead of moving parts.
I''m no expert, but I hope that I have shed some light on the issue. Please, anyone who is smarter than me, feel free to correct me.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
why bother... there a zillions lang. outthere..

(always anonymous)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
syntax..lexical analyzer..tokenizer..parser..damn

(always anonymous)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
read this book several times:

http://www.wiley.co.uk/wileychi/grune/

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
This is beginning to look like an AP convention - How many AP''s? Raise your hand! I''m good for two now. :-)

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!