- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System calls from Fortran
Operating System - HP-UX
1825060
Members
5209
Online
109679
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-24-2002 02:04 PM
тАО10-24-2002 02:04 PM
Hi,
I'm on a HPUX 10.20 and deal with Fortran programs that make system calls to functions like getarg or getenv. When these calls are made within the program, an underscore needs to be added to them, as in...
CALL getarg_(*)
In the man pages, this is not mentioned. This would not really be a problem, except that the original programs come from a machine (not hp) that does not need this underscore. So, all of the original programs need to be changed. Thanks to any words of wisdom.
-Cody
I'm on a HPUX 10.20 and deal with Fortran programs that make system calls to functions like getarg or getenv. When these calls are made within the program, an underscore needs to be added to them, as in...
CALL getarg_(*)
In the man pages, this is not mentioned. This would not really be a problem, except that the original programs come from a machine (not hp) that does not need this underscore. So, all of the original programs need to be changed. Thanks to any words of wisdom.
-Cody
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 10:15 AM
тАО10-25-2002 10:15 AM
Solution
Most FORTRAN environments I've seen DO
require the underscore. HP-UX F77/F90
and Lahey LF95 (on the PC) are the only
ones I've seen that don't.
On HP-UX, the F77 and F90 compilers
behave differently wrt the underscore.
Furthermore, the F90 compiler behaves
differently depending on whether you're
in a 32-bit or a 64-bit environment.
Check the F77 or F90 man page for
the "+ppu" or "+noppu" option. If
you're using gcc, check out the
-fno-underscoring option.
This topic is covered in some detail in the online
documentation:
http://www.docs.hp.com/hpux/dev/index.html#Fortran
require the underscore. HP-UX F77/F90
and Lahey LF95 (on the PC) are the only
ones I've seen that don't.
On HP-UX, the F77 and F90 compilers
behave differently wrt the underscore.
Furthermore, the F90 compiler behaves
differently depending on whether you're
in a 32-bit or a 64-bit environment.
Check the F77 or F90 man page for
the "+ppu" or "+noppu" option. If
you're using gcc, check out the
-fno-underscoring option.
This topic is covered in some detail in the online
documentation:
http://www.docs.hp.com/hpux/dev/index.html#Fortran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2002 10:17 AM
тАО10-25-2002 10:17 AM
Re: System calls from Fortran
Most FORTRAN environments I've seen DO
require the underscore. HP-UX F77/F90
and Lahey LF95 (on the PC) are the only
ones I've seen that don't.
On HP-UX, the F77 and F90 compilers
behave differently wrt the underscore.
Furthermore, the F90 compiler behaves
differently depending on whether you're
in a 32-bit or a 64-bit environment.
Check the F77 or F90 man page for
the "+ppu" or "+noppu" option. If
you're using gcc, check out the
-fno-underscoring option.
This topic is covered in some detail in
the online documentation:
http://www.docs.hp.com/hpux/dev/index.html#Fortran
require the underscore. HP-UX F77/F90
and Lahey LF95 (on the PC) are the only
ones I've seen that don't.
On HP-UX, the F77 and F90 compilers
behave differently wrt the underscore.
Furthermore, the F90 compiler behaves
differently depending on whether you're
in a 32-bit or a 64-bit environment.
Check the F77 or F90 man page for
the "+ppu" or "+noppu" option. If
you're using gcc, check out the
-fno-underscoring option.
This topic is covered in some detail in
the online documentation:
http://www.docs.hp.com/hpux/dev/index.html#Fortran
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP