Mail Archives: djgpp/1999/01/01/23:20:02
David Jarrett wrote:
>
> You do understand that writing a compiler means that you know machine
> language? Im not talkin about assembly, but MACHINE code :)
It needn't. GCC, for instance, knows only about assembly language,
since that's what it outputs. It's the assembler, to which its output
is passed, that must know about machine code. Some compilers integrate
these two passes, but it makes things much easier if you don't.
Besides, this way you don't have to rewrite the assembler.
And machine code is not necessarily as scary as you seem to imply. Once
you know assembly language, the machine code is just a matter of looking
up a lot of numbers and bitfields in a book. Tedious, yes; difficult,
not really.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -