delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/26/05:39:56

From: "Robert L." <vlad3 AT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
References: <38D8BB21 DOT 16397608 AT accord-soft DOT com>
Subject: Re: the gcc -o option
Lines: 28
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MIMEOLE: Produced By Microsoft MimeOLE V4.72.3155.0
Message-ID: <tCiD4.13663$n03.487693@news20.bellglobal.com>
Date: Sun, 26 Mar 2000 07:02:49 GMT
NNTP-Posting-Host: 216.209.203.70
X-Trace: news20.bellglobal.com 954054169 216.209.203.70 (Sun, 26 Mar 2000 02:02:49 EST)
NNTP-Posting-Date: Sun, 26 Mar 2000 02:02:49 EST
Organization: Sympatico
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

the only use of this, i think, is for seeing the difference between 2
program ( hackers style ).

rem this is comp.bat, rename a file, run gxx, compare the 2 file
ren %2 %2.old
gxx %1 %2 %3
compare %2.old %2

--- How to call it  ( from a dos box, write )
comp -o newprog.exe newprog.cpp

--- What it does
ren newprog.exe newprog.exe.old
gxx -o newprog.exe newprog.cpp
compare newprog.exe.old newprog.exe

( Compare is a fictional program, it get 2 file and say where the difference
is )
This batch can work only if you use the form
gxx param outputFile inputFile && (param == -o )
else it do undefine beaviour, you can modify it like you want.

Ghins Mathai a écrit dans le message <38D8BB21 DOT 16397608 AT accord-soft DOT com>...
>The gcc -o option overwrites a file by default. Is there anyway by which
>I can prevent this ??
>


- Raw text -


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