Complex numbers in compilers - upcoming GNU Tools Cauldron.
Toon Moene
toon@moene.org
Tue Sep 12 18:36:50 GMT 2023
On 9/12/23 11:25, Richard Biener wrote:
> On Tue, Sep 5, 2023 at 10:44 PM Toon Moene <toon@moene.org> wrote:
>> This is even obvious in weather forecasting software I have to deal with
>> *today* (all written in Fortran). Some models use complex variables to
>> encode the "spectral" (wave-decomposed) computations in parts where that
>> is useful - others just "degrade" those algorithms to explicitly use reals.
>
> Lack of applications / benchmarks using complex numbers is also a
> problem for any work on this.
Yes, a certain amount of circular "reasoning" is at work here.
However, there is sufficient Fortran programming out there to study how
to compile complex number arithmetic ... LAPACK and its test programs.
I realize that they are not "benchmarks" in the sense that they do not
give you a measure how to speed up the code the compiler generates; but
they are real-life complex number algorithms coded in a programming
language that had complex number support from the beginning.
Hope this helps,
--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
More information about the Gcc
mailing list