comp.lang.ada
 help / color / mirror / Atom feed
From: Dale Stanbrough <dstanbro@bigpond.net.au>
Subject: Re: Ada and vectorization
Date: Sun, 16 Jun 2002 12:50:23 GMT
Date: 2002-06-16T12:50:23+00:00	[thread overview]
Message-ID: <dstanbro-FA230C.22490316062002@news-server.bigpond.net.au> (raw)
In-Reply-To: aehnbn$9ea$1@wanadoo.fr

Guillaume Foliard wrote:

> Hello,
> 
> I start to learn how to use the Intel's SSE instruction set in Ada programs 
> with inline assembly. And while reading Intel documentation (1) I was 
> asking myself if Ada could provide a clean way of vectorization through its 
> strong-typed approach. Could it be sensible, for the next Ada revision, to 
> create some new attributes for array types to explicitly hint the compiler 
> that we want to use SIMD instructions ?
> Language lawyers comments are definitly welcome. As SIMD in modern general 
> purpose processors is largely available nowadays (SSE, SSE2, Altivec, 
> etc...), IMHO, it would be a mistake for Ada to ignore the performance 
> benefit this could bring.


I think the best way to do this is via pragmas. There is one pragma - 
Annotate - which would be perfect for the job.
I think Annotate is a Gnat only thing - the real work would have
to be done with an ASIS like tool.

Very much like the fortran world, where the structured comments can 
be ignored by ignorant compilers, and the program still behaves
correctly (if not as fast).

Dale



  reply	other threads:[~2002-06-16 12:50 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-16  9:56 Ada and vectorization Guillaume Foliard
2002-06-16 12:50 ` Dale Stanbrough [this message]
2002-06-16 20:07   ` Matthias Kretschmer
2002-06-16 22:38     ` Robert A Duff
2002-06-18  8:24       ` Matthias Kretschmer
2002-06-18 10:02         ` Dale Stanbrough
2002-06-18 16:21           ` Matthias Kretschmer
2002-06-18 19:13             ` Robert A Duff
2002-06-18 20:12               ` Matthias Kretschmer
2002-06-18 20:51                 ` Guillaume Foliard
2002-06-19  4:28                   ` Matthias Kretschmer
2002-06-18 20:13             ` Guillaume Foliard
2002-06-18 17:46           ` Ted Dennison
2002-06-16 22:45   ` Ted Dennison
2002-06-17 23:47 ` Robert I. Eachus
replies disabled

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