Data Alignment Macros?

  • Thread starter =?ISO-8859-1?Q?RagnarDanneskj=F6ld?=
  • Start date
?

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

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.
 
P

pete

RagnarDanneskjöld said:
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
 
P

Peter Pichler

pete said:
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top