|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?
To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first?
The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i have programmed before, this question confuses me everytime... |
| Sponsored Links | ||
|
|
|
|||
|
I still don't get it.....A compiler is binary, so its been executed, so what compiled the compiler! And the compiler compiler's in what language was written?
It is not a big deal, but i just find it hard to take it. Maybe its my problem :-/ Last edited by f.ben.isaac; 11-12-2008 at 07:03 PM.. |
|
|||
|
You are asking the chicken & egg question - which comes first?
You can write a binary executable directly in hex, so very early assemblers (which are compilers) were written that way. There also were link editors as well. ld for example. I like Corona's explanation. I think at one time I read that as well. Most compilers are based on lex & yacc. Read about those. |
|
|||
|
Quote:
Compiling the compiler is a process called bootstrapping similar to the way your machine boots up...more on it here. |
|
|||
|
Quote:
>>You can write a binary executable directly in hex, And HEX, so what translates these hexes to binaries for the compiler? If a agree with you, writing in binary 1 & 0 will make machine understand what do you want to do! There has to be convertion between hexes to binaries and since hex is not binaries, what does the conversion! Machine does not giva a damn to anything else except if there is another binary written as a translator who translates hexes back to binary. Any idea? I'm very new to this, i ask in a very dummy questions to know the basics - only overview, no technical stuff.... THANKS |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| State Machine Compiler 5_1_0 (Default branch) | Linux Bot | Software Releases - RSS News | 0 | 05-20-2008 09:30 PM |
| Ragel State Machine Compiler 6.1 (Default branch) | Linux Bot | Software Releases - RSS News | 0 | 03-27-2008 09:50 AM |
| State Machine Compiler 5.0.2 (Default branch) | Linux Bot | Software Releases - RSS News | 0 | 01-14-2008 07:40 PM |
| State Machine Compiler 5.0.1 (Default branch) | Linux Bot | Software Releases - RSS News | 0 | 01-05-2008 05:30 AM |
| C compiler to build Sparc/Solaris binaries on Linux | lyonsd | Programming | 2 | 12-08-2006 04:56 PM |