HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Are character variables WORD ALIGNED?
Operating System - HP-UX
1834441
Members
2286
Online
110067
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
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
04-23-2002 02:05 PM
04-23-2002 02:05 PM
Are character variables WORD ALIGNED?
Hello there,
We are trying to convert a FORTRAN code from
SGI to HP-UX 10.20.
Questions:
1. Are character variables WORD ALIGNED?
2. How to find out word length in charaters?
All the info is appreciated.
Reggie
We are trying to convert a FORTRAN code from
SGI to HP-UX 10.20.
Questions:
1. Are character variables WORD ALIGNED?
2. How to find out word length in charaters?
All the info is appreciated.
Reggie
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2002 09:50 PM
04-23-2002 09:50 PM
Re: Are character variables WORD ALIGNED?
1. Characters are (per default) aligned to 1 byte.
See http://www.docs.hp.com/hpux/onlinedocs/92434-90011/92434-90011.html
Normaly you can change the alignment of datatypes. The way to do this is compiler-specific (differnt for HP COmpiler and gcc). In most cases this will lead to slower and bigger code. Which might or might not be a problem.
2. Do not really understand your question. Do you want to know the length of a character-string (strlen())?
Hartmut
See http://www.docs.hp.com/hpux/onlinedocs/92434-90011/92434-90011.html
Normaly you can change the alignment of datatypes. The way to do this is compiler-specific (differnt for HP COmpiler and gcc). In most cases this will lead to slower and bigger code. Which might or might not be a problem.
2. Do not really understand your question. Do you want to know the length of a character-string (strlen())?
Hartmut
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