delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/07/00:43:14

From: "Groman" <groman AT thehelm DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <rVad4.105$Ee4 DOT 3982 AT nnrp2-w DOT snfc21 DOT pbi DOT net> <38755F22 DOT DFCE5656 AT iname DOT com>
Subject: Re: Data padding?
Lines: 57
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Message-ID: <HAdd4.138$Ee4.6391@nnrp2-w.snfc21.pbi.net>
Date: Thu, 6 Jan 2000 20:03:57 -0800
NNTP-Posting-Host: 206.170.7.70
X-Complaints-To: abuse AT pacbell DOT net
X-Trace: nnrp2-w.snfc21.pbi.net 947217831 206.170.7.70 (Thu, 06 Jan 2000 20:03:51 PST)
NNTP-Posting-Date: Thu, 06 Jan 2000 20:03:51 PST
Organization: SBC Internet Services
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

right now it's about
(I presume) because the size of that struct is 12 bytes...


0x00 0xFF 0xFF 0xFF 0xFF 0x00 0x00 0xEE 0xDD 0xDD 0x00 0xAA


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