[NSWI004] getting stack pointer value

Georgii Ekserdzhian gxrjan at gmail.com
Thu Oct 8 17:13:49 CEST 2020


Good afternoon,

I've been thinking on debug_get_stack_pointer function for quite a while
now.
I pushed my code into my repo.
Also I attached my log.
For some reason the test that asserts that sp1 == sp2 fails, but the log
shows that they are the same.

Also question. You said that we should try first without using inline
assembly.
I tried to use asm() function and the compiler doesn't recognize this
function call.
Is there another way to use assembly in C?

Georgii Ekserdzhian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201008/c612026a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log
Type: application/octet-stream
Size: 8022 bytes
Desc: not available
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201008/c612026a/attachment.obj>


More information about the NSWI004 mailing list