🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49775

Re: Assembly for 386 using gcc??

#49775
From: Fergus Henderson
Date: Wed, 08 Dec 1993 17:40
21 lines
1614 bytes
100273.171@compuserve.COM (Philipp Marx) writes:

>I'm using the gcc utility version 2.4.1. (as ver. 2.2.1.) for a project 
>which includes an assembler file.
>Developping and target system is a INTEL386/486 based system.
>
>The gcc utility for compiling C-code runs very well. But I got a lot of 
>problems trying to use gcc for Assembly. 
>I named my file with the extension ".s" and ran gcc without any option.
>So I got a lot of errors. The assembler source file is written for the MASM 
>of Microsoft and so I had to eleminate all the statements like .MODEL , 
>.386 ...

gcc uses a different assembler with different assembler syntax.
It uses "gas", the GNU assembler.
Amoung other differences, I believe that the argument order is different
in gas syntax to that in MASM syntax.
It looks like you're out of luck.

-- 
Fergus Henderson                     fjh@munta.cs.mu.OZ.AU
Technical Details
Message-ID: <9334304.8176@mulga.cs.mu.OZ.AU>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!uunet!cs.utexas.edu!swrinde!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
References: <931206154844_100273.171_BHB50-1@CompuServe.COM>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,947f853ad322703d
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-12-09 08:59:58 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!uunet!cs.utexas.edu!swrinde!sgiblab!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
Subject: Re: Assembly for 386 using gcc??
Message-ID: <9334304.8176@mulga.cs.mu.OZ.AU>
Sender: news@cs.mu.OZ.AU
Organization: Computer Science, University of Melbourne, Australia
References: <931206154844_100273.171_BHB50-1@CompuServe.COM>
Distribution: gnu
Date: Wed, 8 Dec 1993 17:40:48 GMT
Lines: 21