Article View: comp.sys.mac.programmer.codewarrior
Article #805Re: Alignment (padding) of derived classes, Mach-O vs. CFM
From: Stefan Haller
Date: Wed, 25 Jun 2003 09:32
Date: Wed, 25 Jun 2003 09:32
19 lines
1800 bytes
1800 bytes
Thorrsten Froehlich <froetho@charlie.iit.edu> wrote: > > No. I tried them all before posting; none of them appears to have any > > influence on what happens between a base class and a derived class. > > Hmm, so Metrowerks offers control only over C alignment, but no > control whatsoever over C++ structure alignment. I am surprised > regular structs are treated different from classes to such an extend. That's not what I said. "#pragma options align" does of course control the alignment of members of a C++ class. However, it does not have any influence on the padding that is added between a base class and a derived class. -- Stefan Haller Berlin, Germany http://home.snafu.de/stk/
Technical Details
Message-ID:
<1fx3x6k.1dzfady1to3r7kN%stk@snafu.de>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!news.eusc.inter.net!stkReferences:
<1fwrc5z.1wbucc58vha4aN%stk@snafu.de> <a1ed16f9.0306201135.5802e437@posting.google.com> <1fwyaln.v7pwbouxanswN%stk@snafu.de> <a1ed16f9.0306241143.5112e6cb@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,98e56c06675247cc X-Google-Attributes: gid10bcce,public X-Google-Thread: f635e,98e56c06675247cc X-Google-Attributes: gidf635e,public X-Google-ArrivalTime: 2003-06-25 02:32:45 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!news.eusc.inter.net!stk From: stk@snafu.de (Stefan Haller) Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac Subject: Re: Alignment (padding) of derived classes, Mach-O vs. CFM Date: Wed, 25 Jun 2003 11:32:23 +0200 Organization: none Lines: 19 Message-ID: <1fx3x6k.1dzfady1to3r7kN%stk@snafu.de> References: <1fwrc5z.1wbucc58vha4aN%stk@snafu.de> <a1ed16f9.0306201135.5802e437@posting.google.com> <1fwyaln.v7pwbouxanswN%stk@snafu.de> <a1ed16f9.0306241143.5112e6cb@posting.google.com> X-Trace: news.eusc.inter.net 1056533564 4244 217.9.57.101 (25 Jun 2003 09:32:44 GMT) X-Complaints-To: abuse@eusc.inter.net Mail-Copies-To: never User-Agent: MacSOUP/2.5b3 (Mac OS X version 10.2.6)