🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13807

alignment

#13807
From: Antonio Farfan
Date: Tue, 16 Sep 2003 16:21
15 lines
1552 bytes
Hi everybody:


I am reading from with a alignment in memory of 32-bits. To understant the
values in my application i create one struct to access to the value
obtained. Now, I compile my application with a alignment in Borland of
Bytes. But with this alignment i need to put fields of padding in my struct
( type of char padding[2]). I have proved with an alignment of double-word
(32bits) and without  fields of padding , but with this alignment i can�t
read the fields correctly. I don�t understand this because i think that i
set the same alignment that at memory. Can sombebody help me?

Thanks very much

Antonio
Technical Details
Message-ID: <3f673746@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,a9334a47483d8c0e,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-09-16 09:23:10 PST
From: "Antonio Farfan" <amfm0777@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: alignment 
Date: Tue, 16 Sep 2003 18:21:58 +0200
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 62.15.230.33
Message-ID: <3f673746@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1063728966 62.15.230.33 (16 Sep 2003 09:16:06 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail