Article View: gnu.gcc.bug
Article #2246How do you get GCC 1.33 to produce 386 MASM assembler code.
From: Keith Gabryelski
Date: Mon, 06 Feb 1989 19:13
Date: Mon, 06 Feb 1989 19:13
41 lines
1536 bytes
1536 bytes
I got GCC-1.33 working on a 386 SCO XENIX 2.3.1. I'm trying to get it
to work with the XENIX masm assembler.
I found `masm386.c' in the gcc-1.33 directory. It seems that it needs
to be used somehow (for insn-output.c?). I don't see how it gets
used.
When I compile a program with GCC (say, hello.c) it comes out in the
form:
.file "T.c"
gcc_compiled.:
.text
.LC0:
.byte 0x48,0x65,0x6c,0x6c,0x6f,0x2c,0x20,0x77,0x6f,0x72
.byte 0x6c,0x64,0x2c,0xa,0x0
.align 4
.globl main
main:
pushl %ebp
movl %esp,%ebp
pushl $.LC0
call printf
.L1:
leave
ret
Nice code. It is a lot better than the XENIX compiler puts out, but
the `%register' stuff is not understood (registers don't need the
`%'), symbols should start with an underscore and other things need to
be taken care of.
I looked in masm386.c and it looks like that is what I need, but how
to use it? A grep for `masm' in the directory only gives me a comment
in final.c and some stuff in masm386.c.
Please help.
Pax, Keith
--
ag@elgar.CTS.COM Keith Gabryelski ...!{ucsd, crash}!elgar!ag
Technical Details
Message-ID:
<63@elgar.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!ucsdhub!isg100!elgar!agShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!ucsdhub!isg100!elgar!ag From: ag@elgar.UUCP (Keith Gabryelski) Newsgroups: gnu.gcc.bug Subject: How do you get GCC 1.33 to produce 386 MASM assembler code. Message-ID: <63@elgar.UUCP> Date: 6 Feb 89 19:13:04 GMT Reply-To: ag@elgar.UUCP (Keith Gabryelski) Organization: Elgar Corporation, San Diego, CA Lines: 41