- C言語なら俺に聞け 154
135 :デフォルトの名無しさん (ワッチョイ c701-/WoK)[sage]:2020/01/25(土) 18:58:17.60 ID:OESzqPub0 - >>130
>>133 // x64 linux volatile int x[2]; int main () { asm("pushf"); asm("btsl $18, (%rsp)"); // set AC asm("popf"); // *(int*)((char*)x+1)=1; // SIGBUS asm("pushf"); asm("btrl $18, (%rsp)"); // clear AC asm("popf"); return 0; }
|
|