0 votes
in General Knowledge by (744k points)
What does .globl do? .type? .size?

1 Answer

0 votes
by (744k points)
 
Best answer
.globl is needed by the linker for symbol resolution: followed by name of function

.type is needed by the linker to identify the label as one associated with a function, as opposed to data.

.size is needed by the linker to identify the size of the text for the program.
Welcome to the Answerine , a great place to find, read and share your favorite questions and answers.
...