|
John, There are heap instructions in MI. ALCHSS, FREHSS are the main ones used. Excellent performers and rock solid in practice. MATHSAT is used to materialize the attributes of the heap and each individual allocation. This would give the size of each allocation. ALCHSS and FREHSS are easy enough to use. using MATHSAT would only take 3+ weeks of work. All in the MI Functional Reference. Recently online. Another stategy is to over allocate each allocation. Place the allocation size and maybe some debug info in the 16 bytes immed before the actual data of the allocation. Good luck. Steve Richter ----- Original Message ----- From: "John Taylor" <jtaylor@rpg2java.com> To: <mi400@midrange.com> Sent: Monday, April 08, 2002 2:13 PM Subject: [MI400] Space pointers > Group, > > I'm building a service program (in RPG) with the intent of simplying the use > of dynamic heap storage. One of the first things I've come across is the > need to determine the amount of storage already allocated to a basing > pointer. Since there is nothing in RPG, or the C runtime, that provides this > information, I'm hoping that MI may provide a solution. > > I would appreciate it someone could point me in the right direction. RTFM > will work, but which manual? And is there a specific instruction that I > should look for? > > > Regards, > > John Taylor > > _______________________________________________ > This is the MI Programming on the AS400 / iSeries (MI400) mailing list > To post a message email: MI400@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/mi400 > or email: MI400-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/mi400. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.