Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 1,113 of 2,753    |
|    santosh to Nick Mudge    |
|    Re: How to generate object code    |
|    22 Oct 07 02:00:21    |
      From: santosh.k83@gmail.com              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.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca