From: Georg Bauhaus <rm.tsoh-plus.nicif-bauhaus@maps.futureapps.de>
Subject: Re: Newbie Questions
Date: Tue, 01 Apr 2008 16:09:10 +0200
Date: 2008-04-01T16:09:10+02:00 [thread overview]
Message-ID: <47f24206$0$23703$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <yPqIj.20235$ty.15434@newsfet15.ams>
Chris Yocum schrieb:
> Hi Everyone,
> I have been playing with GNAT and Ada for a little bit (GNAT 4.2.1
> (Ubuntu 4.2.1-5ubuntu6) on Ubuntu 7.10). I have successfully written a
> doubly linked list with generics so I think I am starting to have a feel
> for the language. However, my binaries have always seemed a bit large
> compared to my C/C++ ones for similar data structures. I looked in the
> Wikibook FAQ about it and it instructed me to look at the various
> compiler options.
The most important instruction should likely be to consider
how many bytes are important, really. For very small Ada
programs, the size of the run-time system might matter.
> ~/adastuff/testhello$ gnat make -Phello.gpr
> gcc-4.2 -c -O3 -gnatn -funroll-loops
Loop unrolling is not necessarily reducing code size,
if this is your goal?
> -fPIC -fprofile-arcs
Have you had a look at Chapter 9 of GCC 4.1, gcov? This
chapter should also have some info about the __gcov_* messages.
next prev parent reply other threads:[~2008-04-01 14:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 13:32 Newbie Questions Chris Yocum
2008-04-01 14:09 ` Georg Bauhaus [this message]
2008-04-01 14:27 ` Chris Yocum
2008-04-01 15:04 ` Robert A Duff
2008-04-01 15:08 ` Chris Yocum
2008-04-01 21:16 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox