<[EMAIL PROTECTED]> wrote in message news:30350@palm-dev-forum...
>
> Does such thing exist?  If not, somebody should write it.

Doing a true BoundsChecker-like program that ran on any PalmOS device would
be rather difficult, mainly due to the lack of memory management hardware
which could remap memory.  You already have some of the BC functionality
when you run your code under POSE, since it understands the heap manager
structures and will warn you when you write outside a chunk.

> I would also like to see the gcc compilier extension which allows
> to store variables in databases transparently, i.e.
>
> void f() {
>     databased unsigned long A[10000];
>     // some code here
> }
>
> Here, A is stored in a temporary database, and any references to it are
> translated to reads/writes from the database.

Yow!  This would be pretty evil to implement in the language -- it looks
much more like something that should be implemented using a template,
something like

    DBItem < unsigned long[10000], 'APid' > A;

with methods to lock and unlock the variable, and to handle writing to the
variable using DmWrite.

--
Ben Combee
Veriprise Wireless <http://www.veriprise.com>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to