- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: aCC for 64 bit
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
04-12-2007 10:12 PM
04-12-2007 10:12 PM
aCC for 64 bit
The version of my aCC compiler is showing as
aCC -V : aCC: HP ANSI C++ B3910B A.03.65
file /opt/aCC/bin/aCC. It's shown as
/opt/aCC/bin/aCC: PA-RISC1.1 shared executable dynamically linked
But my machine is PA-RISC 2.0 . Is it ok if i use that compiler for building my applications in 64 bit by adding +DA2.0W option?
Also /usr/ccs/bin/ld also showing as PA-RISC 1.1 shared executable. please suggest me a solution on this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 10:19 PM
04-12-2007 10:19 PM
Re: aCC for 64 bit
Interesting fact that the aCC compiler was not updated to PA-RISC 2.0. It doesn't mattter. You can clearly use it to build PA-RISC 2.0 applications and 64 bit applications. I think the only requirement is that the system you are compiling on be 64 bit and I'm not even sure if that is necessary.
Its kind of a chicken or the egg deal. You're asking how can I compile a 64 bit PA-RISC 2.0 application on a tool that is PA-RISC 1.1 (which supports 64 bit). The first PA-RISC 2.0 application was undoubtedly compiled on a previous compiler.
So my advice is compile to your hearts content and take this into account if you run into trouble unit testing.
In this matter it would be helpful to know if you are on 32 bit or 64 bit hardware. Testing may be difficult with certain compilers on a 32 bit OS install.
model
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 10:28 PM
04-12-2007 10:28 PM
Re: aCC for 64 bit
maybe you can try to compile with â +DAportableâ option (if your aCC support this).
my 2 cent
best regards
pg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 10:31 PM
04-12-2007 10:31 PM
Re: aCC for 64 bit
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2007 10:33 PM
04-12-2007 10:33 PM
Re: aCC for 64 bit
maybe you can try to compile with
  +DAportable
option (if your aCC support this).
my 2 cent
best regards
pg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 12:56 AM
04-13-2007 12:56 AM
Re: aCC for 64 bit
when i am linking i am getting Failure Updating message for the output exe. we tried to trace the ld call by using tusc utility and found that it fails with ENOMEM in the brk call..
I am attaching my traced output of ld. But that is bigger size file so I am giving you the cut and copied file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 01:34 AM
04-13-2007 01:34 AM
Re: aCC for 64 bit
From your tusc output, your heap started below 0x527000 [the brk() call on 56 ups it to that address].
The failing brk() call on line 147 [minus all your snips] is trying to set the end of the heap at 0x4d5f2240 (up into q1) from the previous successful brk(0x3d5f2240).. so you're jumping from q0 to q1... but much more importantly 0x4d5f2240 - 0x527000 = 0x4d0cb240 or 1292677696 bytes.. which is obviously greater than 1073741824.
You're bumping maxdsiz, raise it. (Given that this looks like a normal EXEC_MAGIC layout (the end of the private address space from the MAP_PRIVATE mmaps is up around 0x80000000.. they're getting put just before the process stack/thread stacks), anything over 2Gb would be overkill for this process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 02:00 AM
04-13-2007 02:00 AM
Re: aCC for 64 bit
The below is the configuration shown in SAM. Can we bumpup the maxdsiz to 2147483648 ?
maxdsiz 1073741824 1073741824
maxdsiz_64bit 2147483648 2147483648
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 05:55 AM
04-13-2007 05:55 AM
Re: aCC for 64 bit
See http://docs.hp.com/en/TKP-90202/re34.html for more details on maxdsiz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2007 06:36 AM
04-13-2007 06:36 AM
Re: aCC for 64 bit
>Is it ok if i use that compiler for building my
Why would you think there is a problem?
>Also /usr/ccs/bin/ld also showing as PA-RISC 1.1
Again, why are you looking at things that don't matter?
>SEP: Interesting fact that the aCC compiler was not updated to PA-RISC 2.0.
You are imagining things. ;-)
Shipping a PA2.0 compiler might require not supporting PA1.1.
>I think the only requirement is that the system you are compiling on be 64 bit and I'm not even sure if that is necessary.
Right, not necessary.
>pg: maybe you can try to compile with +DAportable option
Why?, clearly Thiagu wants a 64 bit application.
>procura: And please use +DD64
Right.
>I am attaching my traced output of ld. But that is bigger size file so I am giving you the cut and copied file
Next time, you need to send in a tusc -fp trace. This error comes from pxdb64, not ld.
>Don: You're bumping maxdsiz, raise it. (Given that this looks like a normal EXEC_MAGIC layout
Right.