- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to find Endianness on HP
Operating System - HP-UX
1819682
Members
3568
Online
109605
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
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО08-21-2005 07:33 PM
тАО08-21-2005 07:33 PM
how to find Endianness on HP
Hi all,
Is there any command for finding Endianness on HPUX operating systems.
Thanks,
Madhava
Is there any command for finding Endianness on HPUX operating systems.
Thanks,
Madhava
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2005 07:37 PM
тАО08-21-2005 07:37 PM
Re: how to find Endianness on HP
Hi Madhava,
I found this (C code):
===============================
#include
int endian;
TEST_ENDIAN(endian);
if (endian == 0)
printf("This a little endian system\n");
if (endian == 1)
printf("This a big endian system\n");
===============================
here:
http://docs.hp.com/en/B9106-90012/portal.5.html
HTH!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
I found this (C code):
===============================
#include
int endian;
TEST_ENDIAN(endian);
if (endian == 0)
printf("This a little endian system\n");
if (endian == 1)
printf("This a big endian system\n");
===============================
here:
http://docs.hp.com/en/B9106-90012/portal.5.html
HTH!
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2005 07:43 PM
тАО08-21-2005 07:43 PM
Re: how to find Endianness on HP
HP-UX and Solaris are big endian operating systems.
Linux and Windows are little endian.
Alex.
Linux and Windows are little endian.
Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2005 08:12 PM
тАО08-21-2005 08:12 PM
Re: how to find Endianness on HP
It is big-endian. However you can change it to little endian.
Newer PA-RISC computers can be either big endian or little endian machines, however the HP-UX operating system is a big endian operating system.
Refer: http://docs.hp.com/en/5990-8172/ch02s10.html The Endian Difference Problem part
You can find endian type with gdb as,
# gdb -q
gdb)show endian
gdb)q
#
hth.
Newer PA-RISC computers can be either big endian or little endian machines, however the HP-UX operating system is a big endian operating system.
Refer: http://docs.hp.com/en/5990-8172/ch02s10.html The Endian Difference Problem part
You can find endian type with gdb as,
# gdb -q
gdb)show endian
gdb)q
#
hth.
Easy to suggest when don't know about the problem!
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