In gc开发者_JAVA百科c assembly code listed below, I want to store the address of function foo to var, how do i do it? Thanks.
.text
.globl foo
foo:
/* do something */
.data
.globl var
var:
.long /* the address of foo */
Have you tried this?
.long foo
精彩评论