comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Ada and OpenMP
Date: Thu, 7 Mar 2013 17:15:39 -0800 (PST)
Date: 2013-03-07T17:15:39-08:00	[thread overview]
Message-ID: <3e01ac49-4427-4f50-8577-8edab7e539a6@googlegroups.com> (raw)
In-Reply-To: <khb8m6$933$1@munin.nbi.dk>

On Thursday, March 7, 2013 4:42:59 PM UTC-7, Randy Brukardt wrote:
> 
> Pragmas, IMHO, are the worst way to do anything. Compiler writers tend to 
> use them because they can do so without appearing to modify the language, 
> but it's all an illusion: the program probably won't work right without the 
> pragma, so you're still locked into that particular vendor. Might as well 
> have done it right in the first place (and make a proposal to the ARG, 
> backed with practice, so it can get done right in the next version of Ada).

I'm not sure I totally agree with your sentiment; IIRC, Pragmas in Ada were supposed to be parentheticals to the compiler that were not essential to program correctness -- such as Optimize or the source-printing pragma Page.

That sentiment was thwarted with the inclusion of representation pragmas. -- However, the Ada specification *does* allow for implementation-defined pragmas. It seems to me that such would be ideal for experimental or compiler-specific code-generation. The previous poster's "Pragma OMP(...)" is an excellent example (though I think the FOR_LOOP parameter is stupid, the feature [OMP] should be turned on/off as needed, letting the compiler determine the optimal technique to use. {A program written in such a way would be correct even if the code were ported to a non-OMP compiler, provided the underlying algorithm was correct.}



  parent reply	other threads:[~2013-03-08  1:15 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-07 18:04 Ada and OpenMP Rego, P.
2013-03-07 20:04 ` Ludovic Brenta
2013-03-07 22:22   ` Peter C. Chapin
2013-03-07 23:42     ` Randy Brukardt
2013-03-08  0:39       ` Peter C. Chapin
2013-03-08  3:31         ` Randy Brukardt
2013-03-08  7:17           ` Simon Wright
2013-03-08 23:40             ` Randy Brukardt
2013-03-08 12:07           ` Peter C. Chapin
2013-03-08 14:40         ` Rego, P.
2013-03-08  1:15       ` Shark8 [this message]
2013-03-08  3:42         ` Randy Brukardt
2013-03-08 14:53           ` Rego, P.
2013-03-08 15:47             ` Georg Bauhaus
2013-03-08 23:40             ` Randy Brukardt
2013-03-08 16:52           ` Shark8
2013-03-08 23:36             ` Randy Brukardt
2013-03-09  4:13               ` Brad Moore
2013-03-10  4:24                 ` Randy Brukardt
2013-03-08  7:37       ` Simon Wright
2013-03-10 18:00       ` Waldek Hebisch
2013-03-07 23:43     ` Georg Bauhaus
2013-03-08 10:18       ` Georg Bauhaus
2013-03-08 14:24     ` Rego, P.
2013-03-07 22:52 ` Simon Wright
2013-03-08 21:37   ` Brad Moore
replies disabled

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