Thread: how will i get started..?

  1. #1
    Registered User DeienClock's Avatar
    Join Date
    Dec 2004
    Posts
    3

    how will i get started..?

    hello guys. im having a problem on designing a C compiler... a program that will compile another C program, i really have no idea what to do first... i know that a compiler can detect syntax errors but i dont know how it does... can you help me guys, please.. thank you very much!

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,820
    One question for you.
    Why are your making a compiler if you have no idea where to start?
    Woop?

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well you could look at the source code for gcc I suppose.

    For me, this is one of those questions which falls into the category - "if you need to ask, you're not ready"

    In the meantime, here's some light reading
    http://www.bloodshed.net/compilers/index.html

  4. #4
    Registered User DeienClock's Avatar
    Join Date
    Dec 2004
    Posts
    3

    why would i make a compiler...

    well.. to make the long story short.. i'm on my 4th year college and my professor gave instructions on making a C compiler for our final project... so I would just want to start making that project for me to finish on time coz i think C compiler is a difficult stuff to do... i have no idea how to get started because our professor have'nt given us any lectures about C compiler making.. thanks again!

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Read the links I posted.

    If "Let's build a compiler : A very good tutorial on writing a simple compiler in 16 articles. By Jack W. Crenshaw" doesn't help, then I dunno what to say.

    > our professor have'nt given us any lectures about C compiler making
    Perhaps this is a test of initiative as well - using whatever resources you can get at to help you accomplish your task.
    Besides, a large chunk of compiler construction is "language neutral". Whether it's 'C' or 'Pascal' is a detail for later.

  6. #6
    Registered User DeienClock's Avatar
    Join Date
    Dec 2004
    Posts
    3

    thank you very much!

    well thanks a lot.. i have read some articles on the link you've provided... and i got some ideas on the principles of compiler design! thanks a lot!

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Salem
    Read the links I posted.

    If "Let's build a compiler : A very good tutorial on writing a simple compiler in 16 articles. By Jack W. Crenshaw" doesn't help, then I dunno what to say.
    I like the follow up article "Let's not and say we did: Very good reasons for not, and saying you did. By Q. U. Zah".

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help getting started..matrices
    By BobDole11 in forum C Programming
    Replies: 7
    Last Post: 11-15-2008, 09:51 PM
  2. Help getting started :(
    By blackocellaris in forum C Programming
    Replies: 4
    Last Post: 11-05-2006, 06:50 PM
  3. Getting started
    By panzeriti in forum Game Programming
    Replies: 3
    Last Post: 06-28-2003, 10:13 AM
  4. How to get started?
    By anoopks in forum Linux Programming
    Replies: 0
    Last Post: 01-14-2003, 03:48 AM
  5. Need help getting started
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2001, 11:08 PM