comp.lang.ada
 help / color / mirror / Atom feed
* Gnat Executable Size
@ 1998-10-10  0:00 Robert B. Love 
  1998-10-11  0:00 ` Niklas Holsti
                   ` (3 more replies)
  0 siblings, 4 replies; 59+ messages in thread
From: Robert B. Love  @ 1998-10-10  0:00 UTC (permalink / raw)


Over in the Modula-2 newsgroup somebody was asking about free compilers.
Another person pointed out GNAT as suitable for his task and free.
Ada vs. M2 wasn't the issue.  The original poster said he'd tried GNAT
on a simple "hello world" program and was surprised to see a 200K 
executable.  Others said their favorite M2 compiler yielded about 10K
executables for this.

I tried a simple Put_Line program myself with GNAT under Linux and
got an 84K program.  I've played with Pragma Optimze(Space) and
Pragma Supress (All_Checks) but it stays about  84K.  

I then run strip on the GNAT generated executable and get it down to
about 47K.

How small can GNAT get "Hello World"?  What compiler options and pragmas
would you use for this?



----------------------------------------------------------------
 Bob Love                                   MIME & NeXT Mail OK
 rlove@neosoft.com                            
----------------------------------------------------------------





^ permalink raw reply	[flat|nested] 59+ messages in thread
* Re: Gnat  Free ?
@ 1998-10-22  0:00 Van Snyder
  0 siblings, 0 replies; 59+ messages in thread
From: Van Snyder @ 1998-10-22  0:00 UTC (permalink / raw)
  To: dewar

I just downloaded gnat-3.10p-i386-linux-bin from ftp.cs.nyu.edu.  I installed
it in /opt/gnat, and sourced env-vals.  It won't link any of the examples
because RedHat's path to some object files
(/usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/crtbegin.o) is different from what
gnat expects.  I couldn't find a discussion of what environment variable
(if any) to set to point to the C libraries.

Can you send it to me?

Also I've seen mention of a FAQ about using gnat in general and maybe 3.10p
specifically under RedHat Linux.  I looked at
ftp:rtfm.mit.edu/pub/usenet-by-group/comp.lang.ada but it's empty.  Where's
the FAQ list?

-- 
What fraction of Americans believe   |  Van Snyder
Wrestling is real and NASA is fake?  |  vsnyder@math.jpl.nasa.gov




^ permalink raw reply	[flat|nested] 59+ messages in thread

end of thread, other threads:[~1999-02-13  0:00 UTC | newest]

Thread overview: 59+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-10  0:00 Gnat Executable Size Robert B. Love 
1998-10-11  0:00 ` Niklas Holsti
1998-10-11  0:00   ` Corey Minyard
1998-10-12  0:00     ` Andi Kleen
1998-10-11  0:00 ` Lieven Marchand
1998-10-13  0:00   ` Robert B. Love 
1998-10-11  0:00 ` Bryce Bardin
1998-10-12  0:00   ` Donald Duck
1998-10-14  0:00     ` geertbosch
1998-10-14  0:00     ` dewar
1998-10-15  0:00       ` Donald Duck
1998-10-16  0:00       ` Gnat Free ? Donald Duck
1998-10-16  0:00         ` dewar
1998-10-16  0:00         ` dennison
1998-10-16  0:00           ` Ronald Cole
1998-10-16  0:00             ` Andi Kleen
1998-10-17  0:00               ` dewarr
1998-10-18  0:00                 ` Jonathan Guthrie
1998-10-18  0:00                   ` Ronald Cole
1998-10-19  0:00                     ` dewar
1998-10-19  0:00                     ` dewar
1998-10-21  0:00                       ` Ronald Cole
1998-10-18  0:00                   ` Brian Rogoff
1998-10-19  0:00                     ` Jonathan Guthrie
1998-10-18  0:00                       ` Brian Rogoff
1998-10-19  0:00                         ` dewar
1998-10-19  0:00                           ` Andi Kleen
1998-10-19  0:00                       ` dewar
1998-10-19  0:00                       ` dewar
1998-10-23  0:00                         ` Bruno BEAUFILS
1998-10-25  0:00                           ` dewar
1998-10-17  0:00             ` Jerry van Dijk
1998-10-18  0:00               ` Andi Kleen
1998-10-18  0:00               ` Ronald Cole
1998-10-19  0:00                 ` Jerry van Dijk
1998-10-20  0:00                   ` dennison
1998-10-17  0:00             ` dewarr
1998-10-17  0:00               ` The Ludwig Family
1998-10-18  0:00                 ` dewar
1998-10-19  0:00                   ` Dale Pontius
1998-10-19  0:00                     ` dewar
1998-10-18  0:00               ` Ronald Cole
1998-10-19  0:00                 ` Ronald Cole
1998-10-19  0:00                   ` dewarr
1998-10-19  0:00                 ` dewarr
1998-10-21  0:00                   ` Ronald Cole
1998-10-23  0:00                 ` system
1998-10-16  0:00           ` dewar
1998-10-16  0:00         ` Pascal Obry
1998-10-16  0:00           ` Donald Duck
1998-10-16  0:00             ` dewar
1998-10-19  0:00               ` Pascal Obry
1998-10-19  0:00                 ` dewar
1999-02-13  0:00             ` Fred J. McCall
1998-10-17  0:00         ` David C. Hoos, Sr.
1998-10-17  0:00           ` Jean-Pierre Rosen
1998-10-12  0:00 ` Gnat Executable Size dennison
1998-10-12  0:00   ` Dave Wood
  -- strict thread matches above, loose matches on Subject: below --
1998-10-22  0:00 Gnat Free ? Van Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox