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

Re: [MiNT] Stack restore done by OS

Am 10.10.2010, 16:30 Uhr, schrieb Vincent Rivière <vincent.riviere@freesbee.fr>:

However, the vast majority of functions have a fixed number of arguments, so the called function could fix the stack itself.

What would happen if the caller pushed the wrong amount onto the stack? I guess it would have a wrong stackpointer afterwards.

NB: On Atari, if your stack is big enough, you don't have to clean it up after each system call. You can make a big cleanup at the end... or never.

But the stack is used for local variables, or am I getting something wrong?

Helmut Karlowski