[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-cxx-dev
Subject:    Re:  CXX-DEV: Aligning data on 16 byte boundaries.
From:       Dennis Handly <dhandly () cup ! hp ! com>
Date:       2000-08-28 23:58:35
[Download RAW message or body]

>For narrow mode compiles is there anyway to get aC++ to align static data
>on 16 byte boundaries?
Matthew

You can't.  You must allocate 64 bytes and to a runtime rounding of the
address.

>From: Matthew Collins <collins@hpsgns1.sgp.hp.com>
>From the HP ANSI C documentation which is a bit clearer on this pragma:
    With the PACK pragma, byte alignment is the lesser of n

file:/opt/aCC/html/C/guide/pragmas.htm#pragma-pack
Says it sets the maximum alignment not actual.
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE cxx-dev
 _________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic