Article View: gnu.gcc.help
Article #52652Why are (m68k) gcc-cross and gas incompatible??
From: Graeme Mawson
Date: Mon, 22 Jun 1992 03:29
Date: Mon, 22 Jun 1992 03:29
26 lines
1783 bytes
1783 bytes
I have successfully built gcc (2.1) on a Motorola Delta m88k system as a cross-compiler to Motorola Delta m68k. When executing a "gcc-cross -S file.c", it creates file.s, which is compatible with our provided m68k assembler (as). I have also built gas (1.92.3) on our m88k system as a cross-assembler to m68k, BUT this is incompatible with the file.s produced by gcc-cross. In particular... as uses opcodes with .l .w .b extensions, whereas gas doesn't like these opcodes. It simply extends with l w b. Also, gas requires pseudo- opcodes to be preceeded by a ".". Also, gas doesn't like "%" symbols in label names. The last two examples are easily fixed through altering code in tc-m68k.h and read.c, respectively. However, the .l .w .b extensions would be a large job to correct. Does anyone know why gcc-cross and gas are so incompatible?? Has anyone made these necessary alterations previously? Where could I find these alterations? Any help would be _greatly_ appreciated !! Cheers, Graeme Mawson. -- Internet: mawson@aldetec.oz.au "As for me and my house, we will Perth, Western Australia. serve the Lord." <><
Technical Details
Message-ID:
<493@aldetec.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!aldetec!mawsonShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,1e4d864ff048e732,start X-Google-Attributes: gid11318c,public X-Google-Thread: 1025b4,1e4d864ff048e732,start X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1992-06-21 16:19:20 PST Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!uniwa!aldetec!mawson From: mawson@aldetec.oz.au (Graeme Mawson) Newsgroups: gnu.gcc.help,gnu.misc.discuss Subject: Why are (m68k) gcc-cross and gas incompatible?? Message-ID: <493@aldetec.oz.au> Date: 22 Jun 92 03:29:50 GMT Organization: Aldetec Pty Ltd, Perth West Australia Lines: 26