TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Edwards
from: andrew clarke
date: 1996-11-25 21:40:48
subject: structure packing

25 Nov 96 00:26, Paul Edwards wrote to All:

 > Can someone tell me what the deal is with structure padding?

 > Does it apply to structures when they are DEFINED or when they are 
 > USED?

When they are defined.

 > I was wondering whether this was universal?

I imagine so.

 > Is it true that gcc under Linux has no compile-time option to pack 
 > structures, same as EMX for OS/2?

The EMX port of GCC supports structure alignment via the #pragma pack
directive (see Section 2.4 of /emx/doc/emxgnu.doc for details).  I don't
know about Linux; `man gcc' doesn't help.

--- Msged/2 4.00
* Origin: Blizzard of Ozz, Melbourne, Australia (3:635/728.4{at}fidonet)
SEEN-BY: 50/99 620/243 623/630 632/360 635/544 728 670/218 711/409 410 413
SEEN-BY: 711/430 808 809 932 934 712/515 713/317 714/906 800/1
@PATH: 635/728 50/99 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.