From: Marcelo Elias Del Valle Newsgroups: comp.os.msdos.djgpp Subject: Re: Data padding? Date: Fri, 07 Jan 2000 01:36:02 -0200 Organization: Autronix Lines: 55 Message-ID: <38755F22.DFCE5656@iname.com> References: X-Complaints-To: newsabuse AT supernews DOT com X-Mailer: Mozilla 4.51 [pt] (Win95; I) X-Accept-Language: pt-BR MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id WAB20325 Reply-To: djgpp AT delorie DOT com Humm??? And how memory looks for you??? Groman gravada: > > hi... I need help with DJGPP again. > I have a struct...and I need djgpp to leave it the way I declare it without > any padding or aligning it to machine words... > > for example > > struct Lalala { > unsigned int testing1; > unsigned char testing2; > unsigned short testing3; > unsigned char testing 4; > } > > int main(void) > { > Lalala test1; > test1.testing1 = 0xFFFFFFFF; > test1.testing2 = 0xEE; > test1.testing3 = 0xDDDD; > test1.testing4 = 0xAA; > } > > I want *test1* to look in memory like this: > 0xFF 0xFF 0xFF 0xFF 0xEE 0xDD 0xDD 0xAA > > just like this...is there any way to do that? > > thank you for your help... -- Marcelo Elias Del Valle UIN: 30595143 marceloelias AT iname DOT com http://tilt.8m.com Já visitou o gamesnow hoje? gamesnow AT egroups DOT com http://games_now.netpedia.com -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GE d- s+:+ a-- C++>$ UL P+ L+++ E W+ N+ o- K w-- O-- M+ V- PS++ PE(+) Y+ PGP t+ 5? X R+ tv- b+ DI++ D++ G e- h r(-) z+ ------END GEEK CODE BLOCK------