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?

  1. yes, think indentation make easy , other people read program.

  2. "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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -