From -4574429456663985348
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc772,10e355266b6fd117
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,10e355266b6fd117
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2002-06-07 16:02:12 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.news.qwest.net!namche.sun.com!sunnews1.Eng.Sun.COM!engnews1.eng.sun.com!taumet!clamage
From: Attila Feher <Attila.Feher@lmf.ericsson.se>
Newsgroups: comp.std.c++,comp.lang.c++.moderated
Subject: Re: A humble attempt to suggest alignment support for C++
Date: 7 Jun 2002 22:53:45 GMT
Organization: Oy L M Ericsson Ab
Lines: 29
Approved: stephen.clamage@sun.com (comp.std.c++)
Message-ID: <3CFF99A7.6F040602@lmf.ericsson.se>
References: <3CEA1A08.C6D95CC7@lmf.ericsson.se>
 <53e3f3b2.0205270557.bdd703d@posting.google.com>
 <ad0l2u$4vn$1@bob.news.rcn.net>
	<53e3f3b2.0205302330.67a3eeb5@posting.google.com>
NNTP-Posting-Host: taumet.eng.sun.com
X-NNTP-Posting-Host: netlab.cs.rpi.edu
X-Original-Date: Thu, 06 Jun 2002 20:19:35 +0300
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAPQEexUHMCo9UcraBAQGqdAH+LyTjL15K9Q9RM5S5TDt1MyWxvvrtVKRJ
	V+8LEBb/T84uKzqpKRAYwny+vFgxPzWqbC1l0yfUhxES4K8O3y/Inw==
	=lzEB
X-Approved-For-Group: hsutter@acm.org comp.lang.c++.moderated
X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang)
Content-Length: 1197
Originator: clamage@taumet
Xref: archiver1.google.com comp.std.c++:11897 comp.lang.c++.moderated:44776


McNepp wrote:
[SNIP]
> heap. This purpose it would serve well enough, and why bother about a 
> few wasted bytes if the alternative was highly expensive (and, BTW, 
> wasteful, too) malloc/operator new calls?

Probably, because there was a "design rule" or "base statement" for C++,
that the intent is to make no room for anything else than assembly below
it?  BTW those few wasted bytes may just mean out-of-luck situ on an
embedded system.  Because we do not talk about few wasted bytes, but few
wasted bytes _everywhere_!  And what, if the system has some special HW
(like matrix/vector/whatever) with a special floating point[array]
type... and that has to be aligned to 8K page bounday?  Will you
actually allocate 3 integers padded up to 8K?

Attila



      [ Send an empty e-mail to c++-help@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]

[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]




