modification of g77 for default 64-bit integers on x86-64
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Mar 30 22:37:00 GMT 2004
On Tue, Mar 30, 2004 at 11:32:56PM +0100, Paul Brook wrote:
> > I would like to announce a modification of the g77 compiler to generate
> > integers 8 byte (64 bit) long by default.
> <snip>
>
> > I hope g95 will have this option, too.
>
> It already does.
>
But does it work?
program y
integer i
integer(8) j
print *, bit_size(i)
print *, bit_size(j)
end program y
troutmask:sgk[244] gfortran -static -o y y.f90
troutmask:sgk[245] y
32
64
troutmask:sgk[246] gfortran -static -o y -i8 y.f90
troutmask:sgk[247] y
32
64
Should the second invocation of gfortran cause I to be promoted
to integer(kind=2)? Thus, the 32 should have been 64.
--
Steve
More information about the Fortran
mailing list