Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Making a compiler
#1
i have a series o questions to ask about making the compiler i'm making compile
1. how do i get it to compile it so that you can just view it and return back to the program
2. how do i get it to compile into exe
3. how do i do the error trapping and making print statements and all that capital.

if you want to email me then thats ok
url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79][Image: safer.gif][/url]
Reply
#2
probably aren't the best place for. Smile
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Reply
#3
what do you mean by that it don't make sense
Quote:probably aren't the best place for.
url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79][Image: safer.gif][/url]
Reply
#4
You missed the subject line ... some people starts their statements there.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#5
i never noticed that but can anyone help me at all
url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79][Image: safer.gif][/url]
Reply
#6
Well, a compiler just takes a program and translates it to machine code. It is really hard, and you have to be a very experienced programmer to do such a thing. At university, we have 2 whole years on the topic, and it is one of the hardest subjects in the career (I still have to pass the 4th half - we have to write a compiler - and guy, this can be the hardest assignment in the whole career).

There is plenty of literature you have to read, you first have to learn how regular expressions, work, then grammars, automats, finite state machines, LR or maybe LL and LOTs of things.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#7
Well, as na_th_an pointed out, compiling is largely a matter of translation between (at least) two different languages. (And I'm having trouble believing you didn't already know that. Smile ) Now, for example, if you wanted to learn how to translate English (or American) to Spanish, do you think it might be a good idea to make a first step of (assuming you already know English/American) learning Spanish? Smile In this case, the other language is machine code. You might want to make learning *that* (or at least assembly) your first challenge. It's enough of one and it's something you'll need to do on your way to your bigger goal.
ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
Reply
#8
You could start here
http://compilers.iecc.com/crenshaw/
Antoni
Reply
#9
Here's a start:

The most basic assembly language uses three things:
SET A to B
JUMP to A
IF A = B... JUMP TO A

These are all in bits Smile
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#10
Aren't you the guy who's putting together a team to make an OS?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)