Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ia-32 でオーバーフローはどのように機能しますか?
たとえば、次のコードはどうなるでしょうか。それはどんな旗を投げますか?
movl $0x1, %eax addl $7fffffff, %eax
ありがとう!
メモリが機能する場合、キャリー ビットが設定されずに符号ビットが変化すると、加算によってオーバーフロー フラグが設定されます。1 + 0x7FFFFFFF は、オーバーフローを設定し、キャリーをクリアし、ゼロをクリアします。