Given that the API states you can allocate up to ~1TB of memory and 2^40 (5 bytes) is just over 1TB I'd say the 5 byte offset seems reasonable. The API also states that these pointers are not tagged BTW. I will continue to play with this as time allows, but I'm going to argue that it should stay on midrange-l and not move to MI since there is nothing MI about this. It's esoteric, granted, but it's pure RPGLE and API coding. -Walden ------------ Walden H Leverich III President Tech Software (516)627-3800 x11 WaldenL@TechSoftInc.com http://www.TechSoftInc.com -----Original Message----- From: Leif Svalgaard [mailto:email@example.com] Sent: Tuesday, December 18, 2001 14:36 To: firstname.lastname@example.org Subject: Re: Teraspace memory allocation From: Steve Richter <srichter@AutoCoder.com> > A spcptr contains a 5 byte segment and a 3 byte offset. The teraspace > pointer is probably a 3 byte segment and a 5 byte offset with a high > order bit in the segment portion telling the machine where the > segment/offset division is. ( my speculation ). Investigating this would make a nice chapter in my eBook (I need to get back to writing a few more chapters - gotta earn a living too and the day only got 24 hours :). AFAIK the division between segment and offset is completely arbitrary on the PPC RISC machines. Segments are not mapped to memory in any special way, the mapping is done on a page (4K) basis. I hope that Walden would take some time to check this out. We could also speculate together, but maybe we should move the discussion to the MI-list then. _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l or email: MIDRANGE-Lemail@example.com Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.