× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: RPG400-L Digest V2 #357
  • From: "Sims, Ken" <KSIMS@xxxxxxxxxxxxxxxx>
  • Date: Tue, 10 Oct 2000 13:08:03 -0400

Hi Peter -

>The V4R4 RPG ILE manual says:
 ...
>The position they're talking about is the position of the subfield within a
>data structure, so if the above is true, one would have to assume that the
>data structure begins on a 16-byte boundary. It would be nice if they
>explicitly said that, and assured us it won't change from release to
>release.

Based on my experimentation, since the compiler rejects pointers defined
with from/to positioning that is not on a 16-byte boundary, it appears that
data structures with pointers are always aligned on a 16-byte boundary.
Only pointer fields *have* to be aligned on a 16-byte boundary.  No other
fields *have* to be aligned on any particular boundary, and no other fields
need a 16-byte alignment for best performance; therefore there is nothing to
imply that any data structure not containing pointers is aligned on a
16-byte boundary.

The data structure being discussed in this thread does not contain actual
pointer fields since it is an externally described data structure using
character fields to hold pointers, therefore there is no reason to assume
any particular alignment.

The use of the ALIGN keyword does not imply changing the data structure
itself to ANY particular byte alignment, only to adding padding between
individual fields in the data structure to align float, signed integer, and
unsigned integer fields for performance.

Ken
Southern Wine and Spirits of Nevada, Inc.
Opinions expressed are my own and do not necessarily represent the views of
my employer or anyone in their right mind.

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.