Posts: 538
Threads: 62
Joined: Apr 2003
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]
[/url]
Posts: 704
Threads: 0
Joined: Dec 2002
probably aren't the best place for.
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.
Posts: 538
Threads: 62
Joined: Apr 2003
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]
[/url]
Posts: 6,419
Threads: 74
Joined: Mar 2002
You missed the subject line ... some people starts their statements there.
Posts: 538
Threads: 62
Joined: Apr 2003
i never noticed that but can anyone help me at all
url=http://www.spreadfirefox.com/?q=affiliates&id=0&t=79]
[/url]
Posts: 6,419
Threads: 74
Joined: Mar 2002
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.
Posts: 704
Threads: 0
Joined: Dec 2002
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.
) 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?
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.
Posts: 1,407
Threads: 117
Joined: Dec 2002
Posts: 3,368
Threads: 195
Joined: Jan 2003
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
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.
Posts: 720
Threads: 46
Joined: Oct 2001
Aren't you the guy who's putting together a team to make an OS?