I was just wondering: if you need compile a program before it works: how did they compile the first compiler? MSDOS?
I was just wondering: if you need compile a program before it works: how did they compile the first compiler? MSDOS?
It would have been written in ASM or some language native to whatever system it was on. Compilers just make it easier for people to write programs; they're not necessary to programming.
-Govtcheez
[email protected]
Yeah. It is surprisingly easy to code directly in binary. Of course it's difficult, but it may be easier than you think. It's basically assembly. Assembly can be translated very directly into 1's and 0's/
They didn't had to compile it. They just wrote directly in the computer's language, I guess.
What came first, the hen or the egg? A compiler must be created with another compiler.
Obviously God created the first complier.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Who compiled God?Originally Posted by Sang-drax
This thread is now about religion!
c++->visualc++->directx->opengl->c++;
(it should be realized my posts are all in a light hearted manner. And should not be taken offense to.)
you can code directly in machine code using the Debug program that comes with DOS (it also exists in the Console contained in Windows).
basically you just type "debug" at the prompt, and then you can start entering machine code directly into the computer's memory, and then run it as well.
No compiling necessary.
The very first compiler was a hardware compiler that compiled punch cards. Once there were batch processing systems (that still compiled punch cards), FORTRAN was the only guy on the scene and that was written originally with assembly and ran off a reel-to-reel tape. Just as was previously stated, the beginning was 1s and 0s (early machines required operators to enter their program by flipping a series of switches up/down to represent 1/0 then hit a "process" button to order the machine to execute the instruction present on the switches). Programming started with binary code. Assemblers were written with binary code. FORTRAN was written in assembly at first then later it could be written in FORTRAN. The first C compiler, for a later example, was first written with assembly then later iterations were written in C itself.
I wondered exactly the same thing a few years back and was sort of perplexed at the time, but it is really a simple concept when you think about it.
History lesson from Mr Ritchie himself
http://cm.bell-labs.com/cm/cs/who/dmr/primevalC.html
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
The egg, duh. It's obvious.Originally Posted by Sang-drax
If Darwin was right...
The Lizard-with-feathers layed an egg. The egg hatched. What came out? A more evolved version of the LWF: a hen!
a hen and an egg are lieing in a pool of sweat, smoking cigarettes. The egg says, " well, I guess this answers that question"What came first, the hen or the egg?
there used to be something here, but not anymore
I would think they wrote a simple compiler in ASM or binary with tons of time. Then they evolved it eventually over time.
"When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."