× 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: Prototyping printf()
  • From: "Sims, Ken" <KSIMS@xxxxxxxxxxxxxxxx>
  • Date: Mon, 9 Oct 2000 13:17:53 -0400

Hi Jon -

> >> If I am understanding properly what you are trying to do: there is no
>way to force your externally described data structures to be aligned on a
>16-byte boundary.
>
>I believe that a DS is always 16 byte aligned, and even if not the use of
>the ALIGN keyword would do the job for you.

I can't find anything to indicate that data structures are always 16-byte
aligned.  Even if they are, if it's not documented as the way the compiler
assigns memory, then it is subject to change without notice.  I'd hate to
have a program start blowing up with pointer errors just because I
recompiled it after installing a new release or even just applying PTFs.

The ALIGN keyword insures that float, signed, and unsigned integers are
aligned on the appropriate boundaries (2-byte, 4-byte, and 8-byte) for the
best performance.  This is not going to insure that a 16-byte CHARACTER
field being used for a pointer is aligned on a 16-byte boundary.

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.