From btyner at stat.purdue.edu  Tue Dec 19 23:28:47 2006
From: btyner at stat.purdue.edu (Benjamin Tyner)
Date: Tue, 19 Dec 2006 17:28:47 -0500
Subject: [Rd] precision when calling a C function;
 presence of Fortran call
In-Reply-To: <Pine.LNX.4.64.0612192212010.15148@gannet.stats.ox.ac.uk>
References: <4588363A.5050305@stat.purdue.edu> <45883BB5.5050806@stats.uwo.ca>
	<458856C1.3080600@stat.purdue.edu> <4588589A.8020102@stats.uwo.ca>
	<Pine.LNX.4.64.0612192212010.15148@gannet.stats.ox.ac.uk>
Message-ID: <4588679F.5010305@stat.purdue.edu>

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.
>



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