We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25b1398 commit 753c633Copy full SHA for 753c633
1 file changed
sp.c
@@ -0,0 +1,6 @@
1
+unsigned long get_sp(void) {
2
+ __asm__("movl %esp,%eax");
3
+}
4
+void main() {
5
+ printf("0x%x\n", get_sp());
6
0 commit comments