GCC AT&T Syntax

CLKH64 OS/10장 2013. 1. 12. 01:46 Posted by 알 수 없는 사용자

 

1. AT&T -> Intel 간 신택스 전환

http://stackoverflow.com/questions/549347/how-to-use-address-constants-in-gcc-x86-inline-assembly

2. Constraint

http://gcc.gnu.org/onlinedocs/gcc/Constraints.html

http://stackoverflow.com/questions/2489824/calling-assembly-in-gcc (+, = )

3. 현재주소 '.'

4. 상수 $0x1000

5. 레지스터 오퍼랜드 방향 바뀜, 소스, 데스티네이션

mov %eax, %ebx

6. far 점프 대신 ljmp 세그먼트, 오프셋

7. C언어, C++, 어셈블리어 연결

http://wiki.osdev.org/C%2B%2B_to_ASM_linkage_in_GCC

8. GCC 인라인 어셈블리어에서 C함수 호출

http://stackoverflow.com/questions/3446004/gcc-inline-assembly-call-dword-ptr

8. 인라인 어셈블리 위키

http://en.wikibooks.org/wiki/X86_Assembly/GAS_Syntax