comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: WinNT ADA compilers comparison
Date: 2000/08/03
Date: 2000-08-03T00:00:00+00:00	[thread overview]
Message-ID: <Pine.BSF.4.21.0008031036110.10437-100000@shell5.ba.best.com> (raw)
In-Reply-To: 8mak9p$rbm$1@nnrp1.deja.com

On Thu, 3 Aug 2000 n_brunot@my-deja.com wrote:
> In article <8m9a08$pu7$1@nnrp1.deja.com>,
>   gdemont@my-deja.com wrote:
> 
> > Did you avoid inlining (-gnatn or -gnatN) too ?
> > A solution would be to share more instanciations of generics
> > e.g. having common subtypes. Create 1-line packages for those
> > generic ones used many times:
> > "with such_generic; package such_inst is new such_generic(x,y,z);"
> > If there are many main procedures p1, p2,...
> > (-> several linked executables p1.exe, p2.exe)
> > using almost the same packages, shell them through a common one
> > "with p1,p2,...; procedure p is..."
> 
> We try not introducing any changes in our specifications and tools just
> to satisfy one compiler if all others are happy with a perfectly
> satisfying code (especially a compiler we don't use for release version)

To be clear here, it isn't that GNAT is unhappy (i.e., doesn't work) with
your code, it is that you are unhappy with the code size because your 
original code uses a style suitable with a generic sharing implementation 
and GNAT implements generics with macro expansion, like C++ compilers,
right? 

I guess I always code to a macro expanding implementation in Ada since I 
was raised on GNAT, but I see that this is a real issue if you are used to
something else. I don't know if GNAT is going to change anytime soon; 
Robert Dewar mentioned that there is a DEC patent on generic sharing which 
implementors had to be cautious of. Find the date it was issued, and add
17 to get an idea of when we might hear talk of a generic sharing GNAT ;-)

> gnat 3.12p is one we use to check our code, but anyway it is unusable
> for our applications due to its very poor reliability when components
> of foreign code are called under WinNT, (see discussion for
> float_io.put on gnat chat july archives www.gnat.com)

OK, that's a different issue.

-- Brian






  reply	other threads:[~2000-08-03  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-20  0:00 WinNT ADA compilers comparison Nicolas Brunot
2000-07-20  0:00 ` Thierry Lelegard
2000-07-20  0:00   ` Lionel Draghi
2000-07-21  0:00     ` Nicolas Brunot
2000-07-22  0:00       ` Thierry Lelegard
2000-07-24  0:00         ` Nicolas Brunot
2000-07-25  0:00           ` G. de Montmollin
2000-08-02  0:00             ` n_brunot
2000-07-26  0:00           ` Laurent Guerby
2000-08-02  0:00             ` n_brunot
2000-08-02  0:00               ` gdemont
2000-08-03  0:00                 ` n_brunot
2000-08-03  0:00                   ` Brian Rogoff [this message]
2000-08-03  0:00                     ` tmoran
2000-08-04  0:00                     ` Robert A Duff
2000-08-15  4:56               ` Robert I. Eachus
2000-08-16  0:00                 ` n_brunot
2000-07-20  0:00 ` tmoran
2000-07-20  0:00 ` Stephen Leake
2000-07-20  0:00   ` Pascal Obry
replies disabled

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