Re: Retargetable assemblers and linkers?

"Joachim Durchholz" <>
14 Nov 2000 13:08:26 -0500

          From comp.compilers

Related articles
Retargetable assemblers and linkers? (2000-11-11)
Re: Retargetable assemblers and linkers? (Joachim Durchholz) (2000-11-14)
Re: Retargetable assemblers and linkers? (2000-12-18)
| List of all articles for this month |

From: "Joachim Durchholz" <>
Newsgroups: comp.compilers
Date: 14 Nov 2000 13:08:26 -0500
Organization: Compilers Central
References: 00-11-089
Keywords: assembler
Posted-Date: 14 Nov 2000 13:08:26 EST

<> wrote:
> That is, I would like to feed my x86 compiler's
> code generator back end with sparc or mips code and have the proper
> object code generated.

If you mean that you feed the back end with the e.g. Sparc instruction
set and after that, it will be configured to be a Sparc back end: Yes,
such a thing exists, the most well-known one being the gcc compiler.

> [Yes, there are programs that translate one machine language to
> another. ...]

John has answered the other question.

For both questions, there's the diversity problem. The more differences
there are between the involved processor architectures, the more
difficult it is to have a good code generator that serves all of them.
The problem grows with the number of processor architectures.
I'm not sure whether it has already materialized for gcc, but I have
read on several occasions that gcc is notably behind the state of the
art in x86 code generation. (Somebody with some personal experience may
want to confirm or contradict this rumour.)


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.