1 /* ---------------------------------------------- */
4 #include "../../config.h"
6 /* ---------------------------------------------- */
7 #ifndef TCC_TARGET_X86_64
8 /* ---------------------------------------------- */
13 xchg (%esp),%ebp /* store ebp, get ret.addr */
14 push %ebp /* push ret.addr */
15 lea 4(%esp),%ebp /* setup frame ptr */
16 push %ecx /* save ecx */
29 mov (%eax),%ecx /* restore ecx */
32 /* ---------------------------------------------- */
34 /* ---------------------------------------------- */
39 xchg (%rsp),%rbp /* store ebp, get ret.addr */
40 push %rbp /* push ret.addr */
41 lea 8(%rsp),%rbp /* setup frame ptr */
42 push %rcx /* save ecx */
56 mov (%rax),%rcx /* restore ecx */
59 /* ---------------------------------------------- */
60 /* setjmp/longjmp support */
69 cmp %al,tinyc_no_getbp(%rax)
75 /* ---------------------------------------------- */
77 /* ---------------------------------------------- */