syntax - Question about assembly -
.text .globl main main: xorl %eax,%eax ;return 0 ret like such tiny programe:
1.is true indentation personal preference?
2.the complete of assembly of various .tags , func:, there other part missing can no included in these 2 categories?
yes, think indentation make easy , other people read program.
"func : " labels act way of helping reference difference parts of program. helps lot when doing loops , such. ".tags" or ".globl" directives, these used assembler when assembling code machine instructions.
Comments
Post a Comment