Mail Archives: djgpp/1999/07/28/09:30:19
From: | "DeHackEd" <not DOT given AT out>
|
Newsgroups: | comp.os.msdos.djgpp
|
References: | <933121566 AT p20 DOT f44 DOT n478 DOT z2 DOT FidoNet DOT ftn>
|
Subject: | Re: How to install Djgpp
|
Lines: | 29
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
Message-ID: | <iXCn3.4361$Vb4.21003@tundra.ops.attcanada.net>
|
Date: | Wed, 28 Jul 1999 12:45:02 GMT
|
NNTP-Posting-Host: | 142.194.222.240
|
X-Trace: | tundra.ops.attcanada.net 933165902 142.194.222.240 (Wed, 28 Jul 1999 12:45:02 GMT)
|
NNTP-Posting-Date: | Wed, 28 Jul 1999 12:45:02 GMT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
> Hello, how do You do, All?
>
> I'd install minimum of files required and it's work, small ;(
> when I compile such:
> gcc hello.c
>
> it's compiles, but creates 2 files: a.out & a.exe with size about 105 KB
> How compile, that compile creates file 'hello.exe' but no any 'a.exe'
That "a.exe" file IS your hello.exe. You didn't specify a filename, so it
used "a", and a.out is the same thing except DOS can't execute (2 k
difference). 99% of the time deleting a.out is ok.
To specify an output file, add the following to your command-line: -o
hello.exe
That's a hyphen oh (the small letter), and that specifies the output file.
This command-line option works with (almost) every other utility DJGPP comes
with that makes output files.
If you want to make the EXE smaller, search the newsgroup for something
called "UPX", an EXE compressor that can bring "Hello world" to below 20k.
Or just run "strip hello.exe"
--
DeHackEd
No emails please, the address is fake.
- Raw text -