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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2c498d4a35691643 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.rcn.net!news.rcn.net.POSTED!not-for-mail NNTP-Posting-Date: Wed, 23 Nov 2005 19:41:18 -0600 Reply-To: "Frank J. Lhota" From: "Frank J. Lhota" Newsgroups: comp.lang.ada References: <1132349753.719540.119910@g44g2000cwa.googlegroups.com> <1132756111.751623.309350@g14g2000cwa.googlegroups.com> Subject: Re: Allocated aligned arrays Date: Wed, 23 Nov 2005 20:39:40 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 Message-ID: <7ZGdnUrGCp-jhxjeRVn-og@rcn.net> NNTP-Posting-Host: 209.6.185.133 X-Trace: sv3-KRutLKg6KsyX83wNMMCkssTYkwgwJ9rMfRy1MtFW0LqpMVtQtACKZQ81N6K4LMK8eLv1sRfCNy+zI9p!RrR4YoB8IP4VNbrpAmxaH8ibkFWxdwbeOyCo9H9EqYf4/FIZTsiuPxFTR8jncO1H X-Complaints-To: abuse@rcn.net X-DMCA-Complaints-To: abuse@rcn.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:6569 Date: 2005-11-23T20:39:40-05:00 List-Id: "ldb" wrote in message news:1132756111.751623.309350@g14g2000cwa.googlegroups.com... > Thanks for all the responses. I have looked into user-defined storage > pools, but they appear to have two very large limitations: > > Can they be dynamically sized? Yes. When you define your own storage pool, it is up to you to devise how the allocations and deallocations are performed. There is no prohibition on dynamically sized pools, and in fact that is frequently done. > Can I only associate entire types with storage pools.. or can I > associate individual instances of a type with different pools? Pools are associated with access types. For a given type T, you can create multiple access types for accessing T, each with its own storage pool, e.g. type T is ...; type T_Acc_1 is access T; for T_Acc_1'Storage_Pool use Pool_1; type T_Acc_2 is access T; for T_Acc_2'Storage_Pool use Pool_2; > In other words, I'd like to be able to allocate the storage-pool size > at run-time, after I know the dimensions of the input. I can't really > seem to figure out if this is even possible. And furthermore, I'd only > like certain instances of a particular class to use that storage pool, > not all of them (I don't want every instance of a particular variable > in a large structure to have to use my storage pool). > > Perhaps, then, using subtypes, there is a way around the second issue? > But, again, the entire purpose of requesting aligned arrays is to > improve the speed of the run, so any rigorous conversion function is > essentially a killer, also. >