Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 14th, 2005, 12:07 PM   #11
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Writing a compiler would probably need the knowledge of the ways the compilers of different language work and a very sound knowledge of the C language.
I say the above because, this was said by one of my Professors who is a master at compiler writing.

Edit: Small spelling mistake and change made!
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Nov 14th, 2005, 12:08 PM   #12
Pdp100
Programmer
 
Pdp100's Avatar
 
Join Date: Oct 2005
Location: England
Posts: 62
Rep Power: 3 Pdp100 is on a distinguished road
Come to think of it, who write the first ever program and in what language?
__________________
As spoken by Harold Houdini;

What the eyes see and the ears hear the mind belives...
Pdp100 is offline   Reply With Quote
Old Nov 14th, 2005, 12:39 PM   #13
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
@pdp100: how did you do that? One minute ago you were called decryption
Polyphemus_ is offline   Reply With Quote
Old Nov 14th, 2005, 12:45 PM   #14
Pdp100
Programmer
 
Pdp100's Avatar
 
Join Date: Oct 2005
Location: England
Posts: 62
Rep Power: 3 Pdp100 is on a distinguished road
Lets just say, i have my ways :p



Nah, quick talk with Big_K sorted it
__________________
As spoken by Harold Houdini;

What the eyes see and the ears hear the mind belives...
Pdp100 is offline   Reply With Quote
Old Nov 14th, 2005, 1:31 PM   #15
SittingDuck
Programmer
 
SittingDuck's Avatar
 
Join Date: Nov 2005
Location: Moseley, Birmingham, England, Earth
Posts: 51
Rep Power: 3 SittingDuck is on a distinguished road
Who said anything about C? :p

The first programs were written directly in machine code.

Is there anybody to contact or any articles anywhere on the Internet?
SittingDuck is offline   Reply With Quote
Old Nov 15th, 2005, 12:33 AM   #16
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
this is a joke right? look @ the username.

if not i apologize, compiler creation is a very complicated process.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Nov 15th, 2005, 1:20 AM   #17
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Yeah a user called "SittingDuck" makes just about one of the least descriptive and worst posts that someone could. I thought i was a joke so thats why i replied the way i did.
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Old Nov 15th, 2005, 1:34 AM   #18
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by SittingDuck
Thanks for the confidence, but seriously. Would a very OOP approach be appropriate? That's what I've started to use. Classes for variables, registers, etc. and derive further classes such as a class for an array type, record type, ordinal type...

:o :mad: :eek:
Creating a compiler that compiles source code into executable machine code is difficult, and requires an initimate knowledge of assembly and low-level programming.

If this is your first time, you need to start off by writing an interpreter; something that parses source code and executes it on the fly, skipping out the conversion into machine code.

A good tool to help you write an interpreter is a parser generator. I'd recommend PyParsing and Python for a beginner, though you could try something like Flex/Bison (though I found them hard to work with), or perhaps ANTLR or JavaCC.

However, you still need to be a reasonably experienced programmer to pull this off.
Arevos is offline   Reply With Quote
Old Nov 15th, 2005, 1:54 AM   #19
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
i seriously think it's a joke and ya'll are wasting your time
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Nov 15th, 2005, 7:57 AM   #20
SittingDuck
Programmer
 
SittingDuck's Avatar
 
Join Date: Nov 2005
Location: Moseley, Birmingham, England, Earth
Posts: 51
Rep Power: 3 SittingDuck is on a distinguished road
No, it's not a joke.
SittingDuck is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:33 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC