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

Re: [MiNT] gcc-code-generation



Helmut Karlowski wrote:
if( (unsigned long)&e & 1L )

By the way I undersand you want to check the oddness of the stack in 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;
}

--
Vincent Rivière