Quote:
Originally Posted by
jim mcnamara
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.
>>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