- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Can PA-RISC1.1 library refer to PA-RISC2.0 library...
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
Discussions
Discussions
Forums
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
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
тАО05-19-2008 05:37 AM
тАО05-19-2008 05:37 AM
Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-19-2008 05:47 AM
тАО05-19-2008 05:47 AM
Re: Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
If you mean a 32 bit lib PA2 and a 32bit PA1, then yes.
If you mean a 64 bit lib PA2 and a 32 bit PA1, no off course.
2 reasons:
- 64 bits calling convention is not exactly the same as 32bits calling conventions
- PA2 64 bit is an elf object PA1.1 is an som object.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 02:10 AM
тАО05-20-2008 02:10 AM
Re: Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
>Laurent: 64 bits calling convention is not exactly the same as 32bits calling conventions
You forgot the most important thing, there is an extra hardware bit that says whether in 64 or 32 bit mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 03:30 AM
тАО05-20-2008 03:30 AM
Re: Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
even if running a 32 bit os, and having a 32 bit application, it is still possible to use 64 bit register operation. Only memory access need to be 32 bits.
a PA 2.0 32 bit library could have use 64 bit operations. ( LDD, STD .....) and can be linked with a PA 1.0 32 bit library.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 08:59 AM
тАО05-20-2008 08:59 AM
Re: Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-20-2008 10:46 AM
тАО05-20-2008 10:46 AM
Re: Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
I assume Laurent's point is that the hardware can use 64 bit operations instead of 32 bit operations to fiddle with uint64_t.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-21-2008 12:36 AM
тАО05-21-2008 12:36 AM
Re: Can PA-RISC1.1 library refer to PA-RISC2.0 library at run time
long long x,y; /* same as uint_64 */
x=x+y;
with PA1 ( compile with +DS1.0 +DA1.0 with optimisation)
LDW -56[sp],r26
LDW -52[sp],r25
LDW -56[sp],r24
LDW -52[sp],r23
ADD r26,r24,r26
ADD,C r25,r23,r25
STW r26,-56[sp]
STW r25,-52[sp]
with PA2 (compile with +DS2.0 +DA2.0 and optimised can result in)
LDD -56[sp],r26
LDD -56[sp],r24
ADD r26,r24,r26
STD r26,-56[sp]
and such lib can be linked together and executed on a pa20 32 or 64 bit system.
+DA2.0W is used in place of +DA2.0 it is not possible because the first one will generate a elf64 when the second generate a som with 64 bits instructions used