system call
-
x86-64 Assembly Language 7 Directives와 Hello world 코드Linux Development/Kernel 2021. 8. 1. 19:54
Hello world code 다시 보기 Assembler Directives for AT&T syntax Assembler Directives for Intel syntax 1. Hello world code 다시 보기 이제 앞에서 사용했던 hello world 코드를 해석해보자. Intel syntax에서도 global(라인 1), section(라인 3, 16), db(라인 17), equ(라인 18)등 지시자(directive)를 사용해서 어셈블러에게 정보를 전달한다. 하지만 모든 지시자 앞에 "."(period)가 붙고 모든 레이블 뒤에 ":"(colon)이 붙는 AT&T 방식에 비해 간결성이 떨어진다. Hello world of Intel syntax (좌측) 주변 코드 라인 1에서 코드의 기..