Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou could get the current value of 'sp' using an asm() statement.
However it is probably enough to take the address of a local variable (or argument) as this will be an on-stack address in the current stack frame.