Operating System - HP-UX
1834062 Members
2216 Online
110063 Solutions
New Discussion

Re: 64 bit address programs with f90 ?

 
SOLVED
Go to solution

64 bit address programs with f90 ?

Does anyone know how to create a large address space/64 bit program using the f90 compiler?

I haven't been able to figure out how to get a program to access more than about 990 Mb.

On our SGI IRIX systems the FORTRAN compiler has a -64 flag to create 64 bit executables, but I'm missing this option in the HP f90 man page if there is one.

I have a B2600 running the full HPUX11i-TCOE. Memory is cheap now and I'd love to put 4 Gb in my box, but unless I can access it there isn't much point.

Thanks,

Joe
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: 64 bit address programs with f90 ?

Joe,

Have a look at the "HP Fortran Programmer's Guide, 3rd Edition (HP-UX 10.x, HP-UX 11.0, HP-UX 11i)" located at http://docs.hp.com/hpux/pdf/B3909-90009.pdf

In that manual go to page 29 and have a look at the '+DA' option to the f90 command. I think '+DA2.0W' will do what you want.

Good luck.

Re: 64 bit address programs with f90 ?

Patrick,
Once again thanks. This worked for my simple test program. The first time I tried it I used a -DA2.0W and nothing changed. Sometimes the + vs. - flags trip me up. Anyway the +DA2.0W did the job. Now if I could just get The MathWorks to add that flag to their hpux makefiles!

I probably tried that flag when I first got this machine, but probably made the same dumb mistake of -DA2.0W when it wants +DA2.0W

Best Regards,

Joe