|
From: Alexei Pytel <pytel@us.ibm.com> > > Well, the RISC code to check if a pointer is valid is: > > LQ R6, addr ; load pointer into R6, R7. set bit in exception reg if no > tag > > TXER nn ; trap if no tag > > to me that is software. The trap can be disabled by replacing the TXER > > instruction by a NOOP. > > The overhead is the TXER instruction and is not unacceptable. > > Are you saying that if you replace TXER instruction by NOOP and then go on > to use > untagged pointer, there will be no exception ? > in effect: yes. It is called a counterfeit pointer. People have known how to make these as long as there have been AS/400s. They are not my invention.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.