🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54389

68000 Assembly output from GCC V1.37.1

#54389
From: eugene.yurek
Date: Tue, 20 Nov 1990 18:08
34 lines
2355 bytes
I need to compile gcc to generate 68000 (NOT 68020) assembly code (-S option)
and am having some trouble.

GCC is running on a SUN-3 with SUN-OS 3.5.  I don't care about compiling 
the libraries on the SUN, as this is for an embedded application.  I will
compile the libraries with the '-S' option later.  For now, I just want to
get '-S' to work properly, so I can feed this output from GCC to a MOTOROLA
compatible assembler.

I have defined "MOTOROLA" in the linked 'tm.h' file after using config.gcc
to configure the gcc source for the SUN-3 OS 3.5. The sources compile fine
and give me a working compiler (aside from the libraries).  The problem is
that even with the '-m68000' command line option to gcc, I don't get
correct MOTOROLA syntax 68000 code.

When I define "MOTOROLA" after the '#include ...' lines in tm.h, GCC compiles
fine and works fine, but it doesn't generate correct MOTOROLA syntax output
when run with the '-m68000' option as I've said above.  When I define
"MOTOROLA" before the include lines in tm.h, I get complaints about
TARGET_68020 being undefined, and GCC won't compile.

According to the information in the manual and some stuff I've gleaned out
of the machine description file, gcc is supposed to be able to generate
68000 code in MOTOROLA format, provided that the macro 'MOTOROLA' is defined.
I'm obviously missing something (or possibly misinterpreting something).

Suggestions (or better yet, directions) from anyone who has succeeded in
getting gcc to correctly generate MOTOROLA syntax 68000 code, are greatly
appreciated.

--
Eugene J. Yurek				Internet: ejy@honasa.att.com
AT&T Bell Laboratories			    UUCP: ...!att!honasa!ejy
Holmdel, NJ				   Voice: (201) 949-3753
Technical Details
Message-ID: <1990Nov20.180840.18565@cbnewsi.att.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!att!cbnewsl!cbnewsk!cbnewsj!cbnewsi!ejy

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ea9c34ace5d6126c,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-11-20 10:08:40 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!wuarchive!emory!att!cbnewsl!cbnewsk!cbnewsj!cbnewsi!ejy
From: ejy@cbnewsi.att.com (eugene.yurek)
Newsgroups: gnu.gcc.help
Subject: 68000 Assembly output from GCC V1.37.1
Keywords: 68000, assembly
Message-ID: <1990Nov20.180840.18565@cbnewsi.att.com>
Date: 20 Nov 90 18:08:40 GMT
Organization: AT&T Bell Laboratories
Lines: 34
Posted: Tue Nov 20 19:08:40 1990