projects
/
libfirm
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Use symbolic names instead of magic values for the position parameter of get_irn_n().
[libfirm]
/
ir
/
be
/
test
/
asm_test4.c
1
unsigned long get_sp(void)
2
{
3
unsigned long esp;
4
__asm__("movl %%esp, %0" : "=mr" (esp));
5
return esp;
6
}
7
8
int main(void) {
9
printf("stack pointer available: %d\n", get_sp() > 42);
10
return 0;
11
}