HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Compiling a program on 64 bits HW/OS
Operating System - HP-UX
1833016
Members
2161
Online
110048
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
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
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
07-30-2003 03:49 PM
07-30-2003 03:49 PM
I am trying to compile and link a program on 64 bit system so that I can use higher memory requirement.
The maxdsiz_64 is set higher than 4GB, but when I compile and run a sample program, the program exits after allocating 1.8GB memory.
I am not using any specific flags except the following.
-Aa -DD64 -N
According to Compiler document, for a 64 bit process, it should be able to use larger than 4GB vertual address space.
Any tips and corrections to compile/link flags?
Thanks,
Regards,
Sathya.
The maxdsiz_64 is set higher than 4GB, but when I compile and run a sample program, the program exits after allocating 1.8GB memory.
I am not using any specific flags except the following.
-Aa -DD64 -N
According to Compiler document, for a 64 bit process, it should be able to use larger than 4GB vertual address space.
Any tips and corrections to compile/link flags?
Thanks,
Regards,
Sathya.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 08:40 PM
07-30-2003 08:40 PM
Solution
im not sure if that was a typo you made only in posting here - the correct compiler flag is +DD64, not -DD64. no special linker flags are required (or exist), the linker will know whether its a 32- or 64- bit link from the object files.
--
ranga
[i work for hpe]
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 08:54 PM
07-30-2003 08:54 PM
Re: Compiling a program on 64 bits HW/OS
Hi Sathya,
The -DD64 should be +DD64.
Check the cc man page.
Cheers!
The -DD64 should be +DD64.
Check the cc man page.
Cheers!
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2003 08:49 PM
07-31-2003 08:49 PM
Re: Compiling a program on 64 bits HW/OS
Thanks, that solved my issue.
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP