tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Lars Bro <lbr () dksin ! dk>
To: tru64-unix-managers
Subject: How to determine allignment
Date: Thu, 31 Dec 1998 08:39:10 +0000	[thread overview]
Message-ID: <96079034715833.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

Hi, folks.


I have been asked how to correctly determine the allignment 
boundary.

My own suggestion is that the type �int� in C is used as the
�most appropriate� data size for the processor so if

address % sizeof(int) == 0

anything can be put into that address without problems.

Is this all wrong ? Is there a better way or what ?


-- 

   Lars Bro                                        lbr@dksin.dk

   ABB Daimler-Benz Transportation Signal A/S      +45 36 39 01 77

                 reply	other threads:[~1998-12-31  8:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox