[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Safe stack overflow




On Mon, Feb 24, 2014 at 9:57 PM, Jo Even Skarstein <joska@online.no> wrote:
Ok, you mean to put the stack at the very beginning of the TPA to
trigger a memory violation when the stack overflows? If so, that's an
interesting idea. You'll get stack checking for free.
That was exactly the idea. We're so used to the fact that the stack has to be "above" the program area but there's actually nothing which would stop us to put it "below". Two things have to be changed: Pexec() and the crt0 startup code (Mshrink() handling), if I'm not mistaken. Should be pretty easy, I could even do it but I'd like to hear other people's opinion first.


--
MiKRO / Mystic Bytes
http://mikro.atari.org