Related articles |
---|
How to generate object code mudgen@gmail.com (Nick Mudge) (2007-10-21) |
Re: How to generate object code santosh.k83@gmail.com (santosh) (2007-10-22) |
Re: How to generate object code gah@ugcs.caltech.edu (glen herrmannsfeldt) (2007-10-21) |
Re: How to generate object code eliotm@pacbell.net (Eliot Miranda) (2007-10-23) |
Re: How to generate object code cfc@shell01.TheWorld.com (Chris F Clark) (2007-10-24) |
From: | santosh <santosh.k83@gmail.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 22 Oct 2007 02:00:21 +0530 |
Organization: | Aioe.org NNTP Server |
References: | 07-10-064 |
Keywords: | code |
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
don't.
> 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
> into?
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
comp.compilers page.
Search the
comp.compilers archives again.