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

Re: [MiNT] gcc-code-generation



Am 20.01.2010, 21:55 Uhr, schrieb Vincent Rivière <vincent.riviere@freesbee.fr>:

some places. You can use this function to get the current stack value from C:

/* Read the current stack pointer value */
static __inline__ void* get_sp(void)
{
     register void* ret __asm__("sp");
     return ret;
}

Better than my solution, although I don't like asm.

--
Helmut Karlowski