Numerical Integration
Jaroslav Hajek
highegg at gmail.com
Sun Dec 7 09:38:00 CST 2008
On Sun, Dec 7, 2008 at 4:07 PM, Francesco Potortì <Potorti at isti.cnr.it> wrote:
>>IMHO, there are at least 2 advantages to Fortran over C++:
>>1. Speed of array access due to aliasing problems of pointers. In C,
>>most of these can be solved using restricted pointers in C99, but in
>>C++ there are no restricted pointers so far.
>>2. Compiling Fortran in very fast compared to compiling C++. On any
>>system I tried, libcruft is usually compiled in a flash.
>
> While trying to understand what Jaroslav wrote, and doing a research on
> "restricted pointers", I found out that the gcc manual contains this:
>
> |6.2 Restricting Pointer Aliasing
> |
> |As with the C front end, G++ understands the C99 feature of restricted
> |pointers, specified with the __restrict__, or __restrict type qualifier.
>
> I don't know yet what's the meaning of the above, but while I am
> studying I though that this may be of interest to you :)
>
OK, I know about this. I was already thinking whether we can possibly
detect (by autoconf) support of restrict, __restrict__ or __restrict
and use it within some C++ functions. The principal problem is that
when using restrict, the compiler is allowed to assume certain
conditions and it is the programmer's responsibility to ensure they're
satisfied.
> --
> Francesco Potort ì (ricercatore) Voice: +39 050 315 3058 (op.2111)
> ISTI - Area della ricerca CNR Fax: +39 050 315 2040
> via G. Moruzzi 1, I-56124 Pisa Email: Potorti at isti.cnr.it
> (entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/
>
--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
More information about the Help-octave
mailing list