Prev: Dhrystone
Next: Learning Ada
From: Simon Wright on 1 Aug 2010 13:08 "John B. Matthews" <nospam(a)nospam.invalid> writes: > In article <m262zzs0nz.fsf(a)pushface.org>, > Simon Wright <simon(a)pushface.org> wrote: > >> I've taken the plunge and started a SourceForge project for this. >> It's at http://sourceforge.net/projects/gnat-math-extn/ -- under "Ada >> 2005 Math Extensions", click on [Develop] then on [Code]. [...] >> If anyone feels moved to join in, just say (of course you need a SF >> account to update the SF repository, but with Hg it should be >> possible to work via patchsets .. ) > > I just wanted to report success and offer a small patch: it seems to > makes a considerable difference in the executable size: Glad it worked! > $ hg diff > diff -r aac8ba7708e2 test/test_extensions.gpr > --- a/test/test_extensions.gpr Sat Jul 31 17:09:42 2010 +0100 > +++ b/test/test_extensions.gpr Sun Aug 01 06:33:33 2010 -0400 > @@ -37,4 +37,8 @@ > for Default_Switches ("ada") use ("-E"); > end Binder; > > + package Linker is > + for Default_Switches ("ada") use ("-dead_strip"); > + end Linker; > + > end Test_Extensions; I get the impression this is Mac-specific? Sounds like a good trick, though. > With GNAT 4.3.4 (FSF), I had to build with Library_Kind "static" before > I could build with "dynamic". For some reason, the dylib appears in > ../src/.build/ instead of ../lib/. I think that's a bug in the older > version that I've also seen building GtkAda. It's OK on GCC 4.5.0 & GNAT GPL 2010. Do you really mean you had to build with "static" *before* "dynamic"? weird ... I think that while it's under development, maybe a static library would be the Right Thing.
From: Simon Wright on 1 Aug 2010 13:33 Ada novice <posts(a)gmx.us> writes: > On Aug 1, 6:14 pm, Simon Wright <si...(a)pushface.org> wrote: >> Ada novice <po...(a)gmx.us> writes: >> >> 4 times, with slightly different contents! is your newsreader posting >> the message when you asked it to save a draft, perhaps? >> > > Actually, I posted and then make some modifications to explain better. > And this in 4 tiles as you said. But I deleted each post to put the > new one instead. And only my "final" post appear here. So do you mean > that you were informed (through email perhaps?) 4 times about me > posting? Of course this was never my intention. I shall avoid in the > future to delete a post and re-write it. I suppose the 'cancel' messages didn't make it to my news hosting organisation, then. Not to worry.
From: John B. Matthews on 1 Aug 2010 21:08 In article <m2mxt6b6qd.fsf(a)pushface.org>, Simon Wright <simon(a)pushface.org> wrote: [...] > > + package Linker is > > + for Default_Switches ("ada") use ("-dead_strip"); > > + end Linker; > > I get the impression this is Mac-specific? Sounds like a good trick, > though. Looking closer, I see it's listed among the "Darwin Options". > > With GNAT 4.3.4 (FSF), I had to build with Library_Kind "static" > > before I could build with "dynamic". For some reason, the dylib > > appears in ../src/.build/ instead of ../lib/. I think that's a bug > > in the older version that I've also seen building GtkAda. > > It's OK on GCC 4.5.0 & GNAT GPL 2010. > > Do you really mean you had to build with "static" *before* "dynamic"? > weird ... Yes, building "static" puts an archive (.a) in the expected place (../lib/), where a subsequent "dynamic" build apparently uses it. > I think that while it's under development, maybe a static library > would be the Right Thing. Maybe, as -g is in use. On a related note, the project builds and runs correctly on Ubuntu 10.04 using GNAT 4.4.3 (FSF), Mercurial 1.4.3, blas 1.2, and lapack 3.2.1. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
From: Simon Wright on 2 Aug 2010 12:36 "John B. Matthews" <nospam(a)nospam.invalid> writes: > In article <m2mxt6b6qd.fsf(a)pushface.org>, > Simon Wright <simon(a)pushface.org> wrote: >> I think that while it's under development, maybe a static library >> would be the Right Thing. > > Maybe, as -g is in use. I've made a static release (20100801, delay caused by SF file release system outage) at http://sourceforge.net/projects/gnat-math-extn/files/ > On a related note, the project builds and runs correctly on Ubuntu 10.04 > using GNAT 4.4.3 (FSF), Mercurial 1.4.3, blas 1.2, and lapack 3.2.1. Good news.
From: Ada novice on 2 Aug 2010 12:55
On Aug 2, 6:36 pm, Simon Wright <si...(a)pushface.org> wrote: > I've made a static release (20100801, delay caused by SF file release > system outage) athttp://sourceforge.net/projects/gnat-math-extn/files/ > Thanks. I have just run the 20100801 release on my Windows machine and everything seems fine. I did everything on the command line. YC |