comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: C Interface example
Date: Sun, 04 Feb 2007 09:37:04 -0500
Date: 2007-02-04T09:37:04-05:00	[thread overview]
Message-ID: <ud54qat0v.fsf@stephe-leake.org> (raw)
In-Reply-To: 1170526166.831811.237660@h3g2000cwc.googlegroups.com

artifact.one@googlemail.com writes:

> Yes this was quite a contrived example because my real version of
> vec_add() actually calls Altivec, SSE, SSE2 or pure C code depending
> on detected hardware, which stretches on to about 300 lines. 

Ok. It does make sense to interface that to Ada, rather than just
throwing it out.

> I didn't think anybody would appreciate reading all that just for an
> example on interfacing...

True, but it would have helped to say "The real code does ..., so I
don't want to rewrite it in Ada".

You should still strive to make the Ada code use operators, and
constrained arrays whenever possible.

-- 
-- Stephe



  parent reply	other threads:[~2007-02-04 14:37 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-03 15:20 C Interface example artifact.one
2007-02-03 16:15 ` Ludovic Brenta
2007-02-03 17:15   ` Simon Wright
2007-02-03 19:43     ` Ludovic Brenta
2007-02-03 17:39   ` artifact.one
2007-02-04 14:34     ` Stephen Leake
2007-02-03 16:19 ` Cesar Rabak
2007-02-03 17:40   ` artifact.one
2007-02-03 19:59     ` Cesar Rabak
2007-02-03 17:48 ` Gautier
2007-02-03 18:09   ` artifact.one
2007-02-03 19:17     ` Georg Bauhaus
2007-02-03 19:53       ` artifact.one
2007-02-03 20:02         ` Gautier
2007-02-03 21:36           ` Georg Bauhaus
2007-02-03 19:48     ` tmoran
2007-02-03 19:55       ` artifact.one
2007-02-04 14:37     ` Stephen Leake [this message]
2007-02-03 20:42   ` Pascal Obry
2007-02-03 20:52 ` Jeffrey R. Carter
2007-02-03 20:57   ` artifact.one
2007-02-04  4:05     ` Jeffrey R. Carter
2007-02-04 11:52   ` Simon Wright
2007-02-04 20:59     ` Jeffrey R. Carter
2007-02-05  8:56   ` Maciej Sobczak
2007-02-05 18:12     ` Jeffrey R. Carter
2007-02-06  1:48       ` Randy Brukardt
2007-02-06  8:20         ` Maciej Sobczak
2007-02-06 19:18         ` Jeffrey R. Carter
2007-02-04 14:32 ` Stephen Leake
replies disabled

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