How was the first compiler created?
Posted: Wed Sep 01, 2010 5:30 pm
i cant even try to guess.
what came first, the assembler or the OS?
what came first, the assembler or the OS?
The Next Generation of 2D Roleplaying Games
http://elysianshadows.com/phpBB3/
The assembler HAD to come first.acerookie1 wrote:i cant even try to guess.
what came first, the assembler or the OS?
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?
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?
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
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
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.
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.