[Rd] precision when calling a C function; presence of Fortran call

Benjamin Tyner btyner at stat.purdue.edu
Tue Dec 19 23:28:47 CET 2006


Thanks! It seems the 'volatile' declaration is exactly what was needed.

Ben

Prof Brian Ripley wrote:
> In C, declaring a value as 'volatile' should force it to be stored in 
> a 64-bit memory location.  There is no known way to do this in Fortran:
> compilers and numeric software have been playing leapfrog games for 
> years.
> What you can do with gcc (the compiler collection) is to compile a 
> module with -ffloat-store, as we do with dlamc.f.
>



More information about the R-devel mailing list