Post Reply 
FORTRAN on HP ?
04-27-2014, 02:31 PM
Post: #6
RE: FORTRAN on HP ?
(04-27-2014 11:38 AM)Alvaro Wrote:  Can someone be so kind to point me where I can get a "GFortran.C" file to download so that I could compile it using HPGCC?

There is no gfortran.c per se, but a bunch of *.c files. You'll need to download gcc 4.8 or 4.9, read the docs on how to run ./configure with the options you need to build an ARM cross compiler with C and Fortran support.

That first hit about Android has a script, it probably has 90% of what you need. When running configure make sure you select the correct ARM targets for the 50g.

To make this work with HPGCC, I'd suggest a C wrapper and the Fortran code be compiled as a library. Fortran read/write will be a challenge, but if you are simply just trying to port over Fortran math routines/logic, then you should be able to build libraries that can be linked to HPGCC C programs.

If you want a 100% Fortran experience (e.g. HPGFORTRAN), then you'll have to port over C headers, etc... Someone determined. could knock this out in a weekend.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
FORTRAN on HP ? - Alvaro - 04-26-2014, 10:05 PM
RE: FORTRAN on HP ? - Paul Dale - 04-26-2014, 11:32 PM
RE: FORTRAN on HP ? - Egan Ford - 04-27-2014, 03:57 AM
RE: FORTRAN on HP ? - Alvaro - 04-27-2014, 10:16 AM
RE: FORTRAN on HP ? - Alvaro - 04-27-2014, 11:38 AM
RE: FORTRAN on HP ? - Egan Ford - 04-27-2014 02:31 PM
RE: FORTRAN on HP ? - Alvaro - 04-27-2014, 03:27 PM
RE: FORTRAN on HP ? - Egan Ford - 04-27-2014, 02:34 PM



User(s) browsing this thread: 2 Guest(s)