Thread: Compiler Creation

  1. #1
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688

    Compiler Creation

    Sorry to keep posting, last one i promise!!

    Diffrent question, if one day in the distant future I wanted to create a compiler, would it be possible in C++, or are they written in assembely language, like the machine code, if so I understand learning assembely language needs a MASSIVE learning curve, far greater than C++ as it is such a low=level language. Am I correct in this, I would appreiciate your views

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    aoeuhtns
    Join Date
    Jul 2005
    Posts
    581
    You can right a compiler in whatever programming language you wanted. You could compile source code to machine code with a compiler written in Perl if you wanted. Or with a compiler written in Brain............

  4. #4
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    BrainfXck (where X is U (duh)) is really quite an interesting language. I was reading about it recently and managed get hold of a compiler for it.

    Programming in the language is somewhat laborious (more so than C) due to the obsfucated nature of the language itself. Still it's different, and different is good.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM