i386的operand code可以在gcc源代碼的gcc/config/i386.c中查詢到, 我也是很久以前移植過一種CPU ARCH才記得有這么個(gè)東西.
L,W,B,Q,S,T -- print the opcode suffix for specified size of operand.
C -- print opcode suffix for set/cmov insn.
c -- like C, but print reversed condition
F,f -- likewise, but for floating-point.
O -- if HAVE_AS_IX86_CMOV_SUN_SYNTAX, expand to "w.", "l." or "q.",
otherwise nothing
R -- print the prefix for register names.
z -- print the opcode suffix for the size of the current operand.
* -- print a star (in certain assembler syntax)
A -- print an absolute memory reference.
w -- print the operand as if it's a "word" (HImode) even if it isn't.
s -- print a shift double count, followed by the assemblers argument
delimiter.
b -- print the QImode name of the register for the indicated operand.
%b0 would print %al if operands[0] is reg 0.
w -- likewise, print the HImode name of the register.
k -- likewise, print the SImode name of the register.
q -- likewise, print the DImode name of the register.
h -- print the QImode name for a "high" register, either ah, bh, ch or dh.
y -- print "st(0)" instead of "st" as a register.
D -- print condition for SSE cmp instruction.
P -- if PIC, print an @PLT suffix.
X -- don't print any sort of PIC '@' suffix for a symbol.
& -- print some in-use local-dynamic symbol name.
ps. 較新的內(nèi)核代碼都已經(jīng)將BUG()的實(shí)現(xiàn)做了一些修改, 改成了我上面提到的那種, 這可以讓出錯(cuò)的指令直接在棧頂, 便于調(diào)試.作者: nswcfd 時(shí)間: 2015-12-04 10:13
終于找到這個(gè)老帖子了。