テスト
テスト
test
http://www.example.com
test
| //hogehoge | const char *hogehoge = "hogehoge"; | typedef void (*voidfunc_t)(); | void func(voidfunc_t fn) | { | &fn; | } | int main(int argc, char **argv) | { | func(&func); | return 0; | }
1 .file "hoge.c" 2 .text 3 .globl _func 4 .def _func; .scl 2; .type 32; .endef 5 _func: 6 pushl %ebp 7 movl %esp, %ebp 8 popl %ebp 9 ret 10 .def ___main; .scl 2; .type 32; .endef 11 .globl _main 12 .def _main; .scl 2; .type 32; .endef 13 _main: 14 pushl %ebp 15 movl %esp, %ebp 16 subl $8, %esp 17 andl $-16, %esp 18 movl $0, %eax 19 addl $15, %eax 20 addl $15, %eax 21 shrl $4, %eax 22 sall $4, %eax 23 movl %eax, -4(%ebp) 24 movl -4(%ebp), %eax 25 call __alloca 26 call ___main 27 movl $_func, (%esp) 28 call _func 29 movl $0, %eax 30 leave 31 ret ~
テストテスト
テストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテストテスト
テストテスト
追記:う〜ん・・
やっぱりいまいちなデザインだな・・・