Data Alignment Macros?

Discussion in 'C Programming' started by =?ISO-8859-1?Q?RagnarDanneskj=F6ld?=, Feb 16, 2004.

  1. Can any of you gentlemen tell me what exactly are data alignment macros?

    I remember checking out the UPX source a while ago, reading about it in
    books, and have wondered every since.
    =?ISO-8859-1?Q?RagnarDanneskj=F6ld?=, Feb 16, 2004
    #1
    1. Advertising

  2. =?ISO-8859-1?Q?RagnarDanneskj=F6ld?=

    pete Guest

    RagnarDanneskjöld wrote:
    >
    > Can any of you gentlemen tell me what
    > exactly are data alignment macros?


    The only code I've seen for alignment, is the use of a union
    to align an array of char, with a more restrictive data type,
    as in K&R2, 8.7

    --
    pete
    pete, Feb 16, 2004
    #2
    1. Advertising

  3. "pete" <> wrote in message
    news:...
    > RagnarDanneskjöld wrote:
    > >
    > > Can any of you gentlemen tell me what
    > > exactly are data alignment macros?

    >
    > The only code I've seen for alignment, is the use of a union
    > to align an array of char, with a more restrictive data type,
    > as in K&R2, 8.7


    You can also use bitfields in structures. Probably even less suitable for
    the OP.

    Peter
    Peter Pichler, Feb 20, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    80
    Views:
    2,350
    Stephen J. Bevan
    Nov 7, 2003
  2. Replies:
    1
    Views:
    425
    Marco Antoniotti
    Oct 7, 2003
  3. Replies:
    5
    Views:
    483
  4. Michael T. Babcock

    Re: Explanation of macros; Haskell macros

    Michael T. Babcock, Nov 3, 2003, in forum: Python
    Replies:
    0
    Views:
    505
    Michael T. Babcock
    Nov 3, 2003
  5. Andrew Arro

    macros-loop? calling macros X times?

    Andrew Arro, Jul 23, 2004, in forum: C Programming
    Replies:
    2
    Views:
    477
    S.Tobias
    Jul 24, 2004
Loading...

Share This Page