www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/13/15:02:45

From: George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: can i?
Date: 13 Feb 1998 18:42:28 GMT
Organization: Oxford University, England
Lines: 19
Message-ID: <6c246k$9lp$1@news.ox.ac.uk>
References: <Pine DOT SGI DOT 3 DOT 96 DOT 980213101355 DOT 14775B-100000 AT maanantai DOT hit DOT fi>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 13 Feb 1998 10:16:23 +0200 in comp.os.msdos.djgpp Juuso
Vilmunen <jsvilmun AT hit DOT fi> wrote:

: How can I edit ASM code that DJGPP creates?

Using a text editor :).  I think you meant `How to I tell gcc to
output the assembler?' -- for this, use the `-S' switch.  Just as `-c'
makes it compile and assembler to a .o file, `-S' makes it just
compile, to a .s (assembler) file.  You can edit this, and then link
as normal with the .s file:

gcc -S myfile.c
(edit the myfile.s file)
gcc -o myfile.exe myfile.s

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

ko tavla fo la lojban

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019