How do you make a compiler?

This is a discussion on How do you make a compiler? within the C Programming forums, part of the General Programming Boards category; I want to make a compiler, but I don't know where to start...

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    41

    Question How do you make a compiler?

    I want to make a compiler, but I don't know where to start

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    41
    ..and where can I get a compiler for that?
    THERE IS NO PLACE LIKE 127.0.0.1

  3. #3
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    A compiler for what?
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    41
    for assembler! And where a tutorial for it?
    THERE IS NO PLACE LIKE 127.0.0.1

  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Try Google and Google.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  6. #6
    Registered User
    Join Date
    May 2003
    Posts
    4
    You better study up on compiler design. They teach comp sci courses in this, you can buy textbooks. If you're serious about writing a compiler, I suggest you invest the time up front studying compiler designs. Also get appropriate language reference manuals, offical ISO/ANSI standard publications, etc., because they have reference manuals that break out parse constructs (whatever they're called). Implement in a good language, if you can.

  7. #7
    CS Author and Instructor
    Join Date
    Sep 2002
    Posts
    511
    Be ready to program. You will more than likely have to take either a System Programming or Compiler design classes in college to really learn about what is going on. There is theory behind the code as well.

    Let's see- in college I had to write:

    a UNIX based OS, an assembler/compiler/linker loader for a made up languge we had created in class. Learned how to use lex and yacc. etc.
    Mr. C: Author and Instructor

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. trying to make a KenGen ( for a game tool )
    By lonewolfy in forum C# Programming
    Replies: 4
    Last Post: 03-28-2007, 08:23 AM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. OpenScript2.0 Compiler
    By jverkoey in forum C++ Programming
    Replies: 3
    Last Post: 10-30-2003, 12:52 PM
  4. Compiler Design... Anyone That Can Help!
    By ComputerNerd888 in forum C++ Programming
    Replies: 3
    Last Post: 09-27-2003, 09:48 AM
  5. how to make files
    By quiksilver9531 in forum C++ Programming
    Replies: 6
    Last Post: 02-22-2002, 05:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21