comp.lang.ada
 help / color / mirror / Atom feed
* is having a complex type as built-in the languages vs. being in standard package makes performance difference?
@ 2012-05-16 18:25 Nasser M. Abbasi
  2012-05-16 19:23 ` Georg Bauhaus
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Nasser M. Abbasi @ 2012-05-16 18:25 UTC (permalink / raw)


Just a basic question for the experts.

Ada provides complex data types by a package:

http://progopedia.com/language/ada/

"Ada provides complex datatype, which requires using
packages Generic_Complex_Types and Generic_Complex_Elementary_Functions
and instantiating them with the type of complex number to use"

While a language like Fortran, complex type is 'built-in' the
language, i.e. part of the language intrinsic data types.

What I wondered about is: would this makes a difference when it comes
to the performance of generated code that uses these types in
computations?

i.e. Would the code generated by the compiler by more 'efficient'
somehow if complex was built-in vs. being provided by a package,
or do you think by the time the compiler is done with the code
generation and optimization, then this all becomes irrelevant
'similar' compiler backend generated code will eventually
result in terms of efficiency of the computation?

(It might be possible actually to see this using gcc since
it supports both gnat and gfortran as front end?).

On a side-note, any one knows why when Ada was originally designed
in late 1970's, why complex type was not included as part of its
basic data types?

thanks,
--Nasser





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-05-17  1:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16 18:25 is having a complex type as built-in the languages vs. being in standard package makes performance difference? Nasser M. Abbasi
2012-05-16 19:23 ` Georg Bauhaus
2012-05-16 21:08   ` Jerry
2012-05-16 21:33     ` georg bauhaus
2012-05-17  1:48       ` Isaac Gouy
2012-05-16 19:26 ` gautier_niouzes
2012-05-17  0:19 ` Randy Brukardt

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