Subject: Re: i386/m68k binary conversion
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
List: current-users
Date: 10/23/1996 20:17:46
>>> objdump | <asm parser for A> | gcc backend for B | as | ld

>> Well, there's a problem: text segments often contain things other
>> than executable instructions.  Common examples are string literals
>> and jump tables.

> Yet, DEC seems to have done it quite successfully, with their MIPS ->
> Alpha converter, and their new x86 -> Alpha converter (for NT).  In
> my experience, the MIPS/DECstation -> Alpha converter worked very
> well (never used the other one).  How is that they were able to be so
> successful with binary conversion?

They didn't do it in the form described above.  Most likely the output
contains a verbatim copy of the entire input text segment, just in case
something there is used as literal data instead of getting executed.

Either that or it's just the input text segment with a little machine
emulator for the source machine tacked on.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     01 EE 31 F6 BB 0C 34 36  00 F3 7C 5A C1 A0 67 1D