in reply to Re: making perl more forgetting
in thread making perl more forgetting

It sounds like the only solution that is guaranteed is to use ASM and/or a C compiler with optimizing turned off. (Is there an Inline::ASM?)

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Replies are listed 'Best First'.
Re: making perl more forgetting
by Abigail-II (Bishop) on May 17, 2004 at 13:13 UTC
    Well, it might be easier to write your code in such a way that the optimizer can't optimize it away the overwriting of the memory - for instance, by reading it back and doing something with those results. (Of course, you still might be outsmarted by your OS - if you're unlucky your rewrites won't go futher than the cache before the program is terminated, and the memory pages invalidated).

    Abigail