From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,653642c0bd258f9f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.216.202.93 with SMTP id c71mr175206weo.3.1347850089331; Sun, 16 Sep 2012 19:48:09 -0700 (PDT) Path: ed8ni104346276wib.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.bbs-scene.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: 'Size of an object Date: Tue, 11 Sep 2012 18:27:58 +0200 Organization: cbb software GmbH Message-ID: References: <97ff13ad-308a-416f-a300-6c7d9da3d71b@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-09-11T18:27:58+02:00 List-Id: On Tue, 11 Sep 2012 08:52:03 -0700 (PDT), Adam Beneschan wrote: > What would you expect E'Size to be, and why? In a larger procedure, > what might you use 'Size on a local variable for; if you wouldn't ever > use it on a local variable, then what kinds of *objects* (not types or > subtypes) might you apply 'Size to, and what would you do with the value? Does the question has an answer? What is the object size when stored in a register? Do temp copies count, e.g. when passed by copy, loaded into a cache? Does the memory allocated upon unpacking packed representations count? I think that at best, one could say that the object size is an interval with the upper and lower bound reachable. This interval could used to estimate container type sizes, though the obtained bounds might turn become unreachable. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de