Article View: alt.lang.asm
Article #454Re: GAS code examples or Documentation???
From: Byron Foster
Date: Sun, 09 Oct 1994 05:39
Date: Sun, 09 Oct 1994 05:39
26 lines
1671 bytes
1671 bytes
In article <371g5c$hrb@carroll1.cc.edu>,
Brandon Grady <bgrady@carroll1.cc.edu> wrote:
>I just got the GNU C compiler and tools for OS/2. I think it is
>version 2.4.2 for OS/2. At any rate, I need to create some assembler
>code, but none of the mnemonics that I have used in the past with TASM
>will work. I keep getting errors. So I guess my question is, are
>there any examples that I could work from or are there any references
>that I could look into???
>
>Brandon Grady
>bgrady@carroll1.cc.edu
The '-S' option directs gcc to produce assembly output. For
example:
gcc -S test.c
will produce the file: test.s
This file contains the assembly code converted from your C
program. Also, get the file called gas23dc.zip from the ftp site
oak.oakland.edu /pub/msdos/djgpp. The file explains the AT&T syntax
used by GAS.
Hope this helps...
Technical Details
Message-ID:
<CxE51J.HpB@ennews.eas.asu.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!pipex!swrinde!cs.utexas.edu!asuvax!chnews!ennews!enuxsa.eas.asu.edu!fosterReferences:
<371g5c$hrb@carroll1.cc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f1da8e78f259c98b X-Google-Attributes: gid11318c,public X-Google-Thread: f7d8d,f1da8e78f259c98b X-Google-Attributes: gidf7d8d,public X-Google-ArrivalTime: 1994-10-09 09:26:04 PST Newsgroups: alt.lang.asm,gnu.gcc.help Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!pipex!swrinde!cs.utexas.edu!asuvax!chnews!ennews!enuxsa.eas.asu.edu!foster From: foster@enuxsa.eas.asu.edu (Byron Foster) Subject: Re: GAS code examples or Documentation??? Message-ID: <CxE51J.HpB@ennews.eas.asu.edu> Sender: news@ennews.eas.asu.edu (USENET News System) Nntp-Posting-Host: enuxsa.eas.asu.edu Organization: Arizona State University References: <371g5c$hrb@carroll1.cc.edu> Date: Sun, 9 Oct 1994 05:39:19 GMT Lines: 27