|How to generate object code firstname.lastname@example.org (Nick Mudge) (2007-10-21)|
|Re: How to generate object code email@example.com (santosh) (2007-10-22)|
|Re: How to generate object code firstname.lastname@example.org (glen herrmannsfeldt) (2007-10-21)|
|Re: How to generate object code email@example.com (Eliot Miranda) (2007-10-23)|
|Re: How to generate object code cfc@shell01.TheWorld.com (Chris F Clark) (2007-10-24)|
|Date:||Mon, 22 Oct 2007 02:00:21 +0530|
|Organization:||Aioe.org NNTP Server|
|Posted-Date:||22 Oct 2007 00:23:05 EDT|
Nick Mudge wrote:
> Do compilers normally turn code into an assembly language and then run
> an assembler to to convert it into binary?
It really depends on the compiler and its language. Some do, some
> Or does the compiler make its own representation and itself turn the
> representation into object code?
This is what many compilers do. In fact the intermediate
representation is pretty much ubiquitous.
> How do assemblers turn assembly into object code? Does the assembly
> author have to know the binary numbers to translate the assembly
In general both the compiler and the assembler need to know the
details of the target's object and code representations. So yes,
knowledge of instruction encodings, hexadecimal etc., are basic
requirements for a compiler or assembler author.
Return to the
Search the comp.compilers archives again.