Mail Archives: djgpp/2004/07/20/05:30:08
Sterten <sterten AT aol DOT com> wrote:
> I changed my gc.bat now to
> gcc %1.c -g -O2 -o %1.exe
> strip %1.exe
> echo ----------------------------------------- >>%1.exe
> echo ----------------------------------------- >>%1.exe
> echo ----------------------------------------- >>%1.exe
> type %1.c >>%1.exe
This batch file is a menace to society. *Don't* muck with .exe files
like that if you expect tools to continue working on them with any
degree of reliability.
In particular, it's completely pointless to compile using the -g flag
if the immediate next step is to strip the resulting .exe file.
You're making it impossible for [bfd]symify to help you.
And for heaaven's sake, please do yourself and everyone else a favour
and learn some actual C some time. What you've posted is only
marginally different in legibility from FORTRAN 66. Which was a fine
programming langue in its day, but that was almost 40 years ago.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -