How was the first compiler created?
Moderator: Coders of Rage
-
- Chaos Rift Newbie
- Posts: 48
- Joined: Fri Feb 12, 2010 12:46 pm
- Favorite Gaming Platforms: PC, Wii, SNES, GameCube
- Programming Language of Choice: C++
How was the first compiler created?
i cant even try to guess.
what came first, the assembler or the OS?
what came first, the assembler or the OS?
- hurstshifter
- ES Beta Backer
- Posts: 713
- Joined: Mon Jun 08, 2009 8:33 pm
- Favorite Gaming Platforms: SNES
- Programming Language of Choice: C/++
- Location: Boston, MA
- Contact:
Re: How was the first compiler created?
http://en.wikipedia.org/wiki/Compiler#C ... _education
"The first compiler was written by Grace Hopper, in 1952, for the A-0 programming language. The FORTRAN team led by John Backus at IBM is generally credited as having introduced the first complete compiler in 1957. COBOL was an early language to be compiled on multiple architectures, in 1960."
wikipedia ftw
"The first compiler was written by Grace Hopper, in 1952, for the A-0 programming language. The FORTRAN team led by John Backus at IBM is generally credited as having introduced the first complete compiler in 1957. COBOL was an early language to be compiled on multiple architectures, in 1960."
wikipedia ftw
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
http://www.thenerdnight.com
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
Re: How was the first compiler created?
The assembler HAD to come first.acerookie1 wrote:i cant even try to guess.
what came first, the assembler or the OS?
- ismetteren
- Chaos Rift Junior
- Posts: 276
- Joined: Mon Jul 21, 2008 4:13 pm
Re: How was the first compiler created?
On the first computers, you would have a control panel, with some switches you could choose memory adress with, and some switches you could set data with. Lats say 8 of each(8 bit computer). In the beginning you diden't use an OS. A CPU have a register for storing at what address it should find the next instruction to execute. So if the initial point for that pointer was memory adress 0 you would set all the address switches to zero, and set the data keys to some instruction, and then press a key to load that instruction into that point in memory, then you would set the address switches to 1, set the data at 1 and so on.acerookie1 wrote:i cant even try to guess.
what came first, the assembler or the OS?
At some point people started writing assembly code down paper, and then hand assemble it the way i described, to get a better view of the code, you had to debug it in your head!.
If you screw up once, you where screwed. And it would take ages to do even the simplest things. So at some point, somebody decided to write an assembler(probably in this very tedious way, but maybe it would be possible to hardwire a circuit to do the input for you?? i really have no idea, just guessing here).
Now i'm not the one going to college here, but i would imagine a simple OS being written before the assembler, that could handle IO, i mean, if the assembler had to be written into memory manually each time you had to use it and only could output programs to the ram, there woulden't really be much point in it would there?
Here is a picture of the Altair 8800 it was the first PC, and it worked by these switches
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: How was the first compiler created?
I think he was trying to figure out how the assembler was written without an assembler already existing. The answer is straight machine code.GyroVorbis wrote:The assembler HAD to come first.acerookie1 wrote:i cant even try to guess.
what came first, the assembler or the OS?
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Re: How was the first compiler created?
at the 8800 thing, it also had to be assembled I do believe xD that would be fun you get to put it together then you can watch things blink.... actually... that does sound like fun
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: How was the first compiler created?
You don't program it in assembly. What's so hard to understand about that? You give it straight machine code, and it executes it exactly as it is. Is that really such a difficult concept?eatcomics wrote:at the 8800 thing, it also had to be assembled I do believe xD that would be fun you get to put it together then you can watch things blink.... actually... that does sound like fun
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Re: How was the first compiler created?
Oh jesus my bad, I didn't choose very good words there, by assembly I meant put it together lol, that was totally my bad.... So yeah... there is nothing hard to understand about that, seeing as how it has a few switches... I mean... assembly (this time the language) kinda goes out the doorGinto8 wrote:You don't program it in assembly. What's so hard to understand about that? You give it straight machine code, and it executes it exactly as it is. Is that really such a difficult concept?eatcomics wrote:at the 8800 thing, it also had to be assembled I do believe xD that would be fun you get to put it together then you can watch things blink.... actually... that does sound like fun
- MrDeathNote
- ES Beta Backer
- Posts: 594
- Joined: Sun Oct 11, 2009 9:57 am
- Current Project: cocos2d-x project
- Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
- Programming Language of Choice: C/++
- Location: Belfast, Ireland
- Contact:
Re: How was the first compiler created?
One of my computer science lecturers told us that when he started to program you had to have your program made out on a punch cardwhich was then read into a computer the size of a small room i.e it manipulated memory addresses based on the holes in the card. I suppose this kind of computer is, in itself an assember.
http://www.youtube.com/user/MrDeathNote1988
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Re: How was the first compiler created?
indeed they did use to use punch cards
- Ginto8
- ES Beta Backer
- Posts: 1064
- Joined: Tue Jan 06, 2009 4:12 pm
- Programming Language of Choice: C/C++, Java
Re: How was the first compiler created?
I believe how it worked was that it had a set number of "lines" on the punch card. Each line was a byte, and on that line would be (punched in some way) the binary code for that byte. IIRC if you wrote a program in FORTRAN, you would punch its byte sequence in on cards, feed it into the compiler, then the compiler would punch more cards that would run the program (unless FORTRAN was interpreted, in which case it ran then and there). Of course, I could just be talking out of my ass, so feel free to correct me.MrDeathNote wrote:One of my computer science lecturers told us that when he started to program you had to have your program made out on a punch cardwhich was then read into a computer the size of a small room i.e it manipulated memory addresses based on the holes in the card. I suppose this kind of computer is, in itself an assember.
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
-
- Chaos Rift Newbie
- Posts: 48
- Joined: Fri Feb 12, 2010 12:46 pm
- Favorite Gaming Platforms: PC, Wii, SNES, GameCube
- Programming Language of Choice: C++
Re: How was the first compiler created?
yeah. thanx every one!Ginto8 wrote: I think he was trying to figure out how the assembler was written without an assembler already existing. The answer is straight machine code.
- davidthefat
- Chaos Rift Maniac
- Posts: 529
- Joined: Mon Nov 10, 2008 3:51 pm
- Current Project: Fully Autonomous Robot
- Favorite Gaming Platforms: PS3
- Programming Language of Choice: C++
- Location: California
- Contact:
Re: How was the first compiler created?
LOL When I first sawa punch card, I was like 4, I thought it was a thing for games. Like literally a score board or something