Mail Archives: djgpp/2000/10/05/02:51:15
-----BEGIN PGP SIGNED MESSAGE-----
On Wed, 4 Oct 2000, David Grant wrote:
> How can I make my EXE files smaller. I just made a Hello World program and
> it is like 200,000 bytes!
You can use some (ancient) run-time compression. Don't know by heart now
but was based on sth like zip with a run-time decompression.
> I tried using gcc instead, but it didn't like my cout statement for some
> reason. How can I do a printf instead? It didn't seem to like that either.
the cout and cin streams and << (or for that matter >>) operators are
*strictly* c++. To obtain the same (well known program) using
C-statements, do it like this:
#include <stdio.h>
int main(void)
{
printf("Hello World\n"); /* or fprintf(stdout,"Hello World\n");
return 0;
}
******* Groetjes vanwege ***** Greetings From *******
Dieter Demerre - http://www.angelfire.com/de/ddemerre
ddemerre AT acm DOT org - ext DOT dieter DOT demerre AT siemens DOT be
Although this private and confidential e-mail has been sent
to you through a personal Siemens account, it does NOT
represent any official opinion of Siemens.
If you are not the intended recipient of this e-mail and
have received it in error, please notify the sender by
replying with 'received in error' as the subject and then
delete it from your mailbox.
-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8
iQCVAwUBOdwivK5coohL2ygZAQEW9QQArsUDQ1Oy2pvNeNRYt5xeo6V0UVFhQpxb
+Uth8f9aGzH/2tsPFnD2Hu8wtOIZBArdfYwmfdLHyVFSzujfBaPEHXIspqG5BVh0
biUZ1ozp7I/1jIhBjqt29/7rQIIMInPKEsfcGWtgFrJBjpBGhSFaOHbLwwYyinmC
/wTU36BNnk4=
=4gHp
-----END PGP SIGNATURE-----
- Raw text -