aoki@postgres (Paul M. Aoki) (07/07/88)
I would like to use our Sequent Symmetry (a 386-based multiprocessor) as a compile-server for a bunch of Sun3 workstations. Specifically, I am trying to get a 68020 C compiler, assembler, and linker/loader to work on the Symmetry. GNU cc seems to work fine on the Symmetry, so I can produce 68020 assembly code. All I need is a working 68K /bin/{as,ld} and I'm set. Problem: programs that produce .o files are just a *little* more sensitive to byte-ordering than compilers, and the 68K and 386 have reverse byte-ordering. I really don't want to go through every line of Sun's as and ld (or the GNU as and ld) and stick byte-swapping macros in -- someone somewhere must have done something like this before! QUESTION: Does anyone have a 68020 as/ld that works on little-endian machines? Code that runs on a VAX running UN*X would be great, and something that runs on a 386 UN*X box would be ideal. We run SunOS 3.5 on the Suns and DYNIX 3.0 on the Sequent, both SysV/BSD hybrids. Please pass on any hints or pointers you have ... ---------------- Paul M. Aoki CS Division, Dept. of EECS // UCB // Berkeley, CA 94720 (415) 642-1863 aoki@postgres.Berkeley.EDU ...!ucbvax!aoki