TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: All
from: andrew clarke
date: 1995-06-17 02:53:56
subject: structure alignment

Microsoft QuickC 2.5 packs (or aligns) structures at 2-byte boundaries,
by default.  This had me scratching my head for quite a while trying to
work out why the reported size of an identical structure differed between
Borland C++ 3.1 and MS QuickC 2.5.  By default, Borland C++ "aligns
structures at 1-byte boundaries", effectively not aligning them.

Does anyone know of any other DOS or OS/2 compilers that align structures
by default?  Also, does aligning structures at 2- or 4-byte boundaries 
really provide a distinct speed increase in an 'average' program?  Tnx.

andrew

--- Msgedsq/2 3.05
* Origin: Blizzard of Ozz, Melbourne, Australia (3:633/267.1{at}fidonet)
SEEN-BY: 50/99 620/243 623/630 632/348 998 633/154 252 253 260 262 267 371
SEEN-BY: 633/373 634/384 635/301 502 503 544 636/100 639/100 711/401 409 410
SEEN-BY: 711/430 510 807 808 809 932 934 712/515 713/888 714/906 800/1
SEEN-BY: 7877/2809
@PATH: 633/267 252 371 635/503 50/99 711/808 809 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™.