www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/07/00:04:08

From: Marcelo Elias Del Valle <marceloelias AT iname DOT com>
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: <rVad4.105$Ee4 DOT 3982 AT nnrp2-w DOT snfc21 DOT pbi DOT net>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019