Compiler creation - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Compiler creation

Do you ever try to create compiler for some language, some machine? I have to make one. I want to create machine independent pl but it is not easy. I realize that I have to create common machine code compiler but it is complicated? Do anybody have some experience with this?
Thanks for all answerback

Comments

  • brain_insidebrain_inside Posts: 40Member
    : Do you ever try to create compiler for some language, some machine? I have to make one. I want to create machine independent pl but it is not easy. I realize that I have to create common machine code compiler but it is complicated? Do anybody have some experience with this?
    : Thanks for all answerback
    :

    There is no such thing as "common machine code".
    Perhaps what you mean is intermediate code which can then be turned into real machine code by some other program or interpreted like in Java?

    Somewhere I have found an excellent tutorial on this subject, called "Lets Build A Compiler". I don't know where it was but it would certainly help you.
  • Dr.MobiusDr.Mobius Posts: 14Member
    Yes, I was thinking intermediate code or P-code or Byte code. This is necessary to meke machine independent OS.
    I finde one tutorial like this too(maybe the same) and I am studing this now but I havent enough time.

    Thank you for replay.
    Dr.Mobius

  • CryoburnerCryoburner Posts: 2Member
    : Yes, I was thinking intermediate code or P-code or Byte code. This is necessary to meke machine independent OS.
    : I finde one tutorial like this too(maybe the same) and I am studing this now but I havent enough time.
    :
    : Thank you for replay.
    : Dr.Mobius
    :
    :
    You might find the thread I just posted about L.IN.O.L.E.U.M. in this same forum interesting. It is built around complete abstraction from the physical system, and uses a tiny runtime module implanted directly into the executable file to allow software to communicate with just about any type of system, once RTMs are created for them. The author of it, Alessandro Ghignola (otherwise known as Alex, around the site), would most likely be happy to explain details of how it works to you, if you post in the forum...

    http://www.anywherebb.com/postline/fixchat.html

    -Cryoburner
Sign In or Register to comment.