GPC for EMX works!_(re)

Wed, 20 Sep 1995 17:51:52 -0400 (EDT)




On Mon, 18 Sep 1995, Jukka Virtanen wrote:

> 
> 	The EMX binaries made by Peter are now available
> 	in kampi.hut.fi directory jtv/gnu-pascal/EMX


	I just downloaded them and tried it out.  Unfortunatly, I was a 
little disappointed with it.  The resulting object files seemed to be 
highly unoptimized.

	I compiled a simple "Hello, world" program using GPC with the 
"-Zomf" option to produce OS/2 .OBJ files instead of UNIX a.out.  The 
resulting executable was 68363  bytes.  I compiled a similar "Hello, world" 
program using GCC (a direct translation) also with the "-Zomf" option and 
the resulting executable file was only 21809 bytes.  

	Is there anything I can do to fix this?  I know probably the EMX
translation was a "rush job", but maybe y'all can give me some pointers as
to how to optimize it a bit.  (Or maybe I can get somebody else if Peter
is too busy ...).  Also, for some reason when I use the "-O3"  switch, the
resulting object file actually becomes bigger!  Why is that? 

	At first when I converted the GPC.A file to OMF format, I didn't 
strip any debugging info or anything.  The resulting executable was 
pretty huge (90k) for such a small program.  After stripping the debug 
info and what not, the exe was "only" 68k ... so that helped a bit.  Is 
there anything else I can do?


	At least I can use this compiler for my CMSC112 class ... 
"Introduction to Computer Science with Pascal" ... oohh ... tough class 
:-).  I found out that Virtual Pascal doesn't do ISO Pascal and 
probably Borland is the same, so this compiler will come in handy as then I 
don't have to work on projects at school .. I can do it in the privacy of 
my room.

Later ...

Arcadio




Arcadio Alivio Sincero (lotu@wam.umd.edu)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es