Date: Wed, 9 Jul 2003 22:12:00 -0400 (EDT) From: The Shadow To: djgpp AT delorie DOT com Subject: Question about Djgpp : Data Alignment Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi I want to know if it is possible to tell the compiler not to place any padding in data structures to allign the data on word or dword. For example, if I make a sizeof of the struct bellow, I will obtain a size of 4 bytes instead of 3 bytes : typedef unsigned char byte; typedef unsigned short word; typedef struc s_test_struct { byte var1; word var2; }s_test_struct; sizeof ( s_test_struct ) is 4. In this case, it add a byte of padding between the 2 variables to make sure var2 is word aligned. If there an option in DJGPP that can allow the compiler to ingnore the data alignment and the padding process. Or is is possible to specify somehow that the struct s_test_struct should not receive any padding. Thank you for considering my request Sayonara (^_^) The Shadow