gccのインラインアセンブラで使えるx86系の汎用レジスタの制御子(Constraints)
一覧
インラインアセンブラ 制御子 | レジスタ名称 | |
---|---|---|
x86(32bit) | x86_64(64bit) | |
a | eax | rax |
b | ebx | rbx |
c | ecx | rcx |
d | edx | rdx |
S | esi | rsi |
D | edi | rdi |
r8 | - | r8 |
r9 | - | r9 |
r10 | - | r10 |
r11 | - | r11 |
r12 | - | r12 |
r13 | - | r13 |
r14 | - | r14 |
r15 | - | r15 |
ネタ
- gccのマニュアル(6.44.3 Constraints for asm Operands)
- IntelのCPUを調べるにはこれ[http://www.intel.co.jp/content/www/jp/ja/processors/architectures-software-developer-manuals.html:title]
- 3.2 OVERVIEW OF THE BASIC EXECUTION ENVIRONMENT
- 3.4 BASIC PROGRAM EXECUTION REGISTERS
- 3.1.1.1 Opcode Column in the Instruction Summary Table (Instructions without VEX prefix)
- Table 3-1. Register Codes Associated With +rb, +rw, +rd, +ro
- 3.1.1.1 Opcode Column in the Instruction Summary Table (Instructions without VEX prefix)