祭りの続き †MIPS でもやってみた. やっぱり同様の最適化処理はされるようだ. $ mipsel-linux-gnu-gcc --version mipsel-linux-gnu-gcc (Debian 4.4.0-10) 4.4.0 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ mipsel-linux-gnu-gcc -O2 -c exploit.c $ mipsel-linux-gnu-objdump -d exploit.o exploit.o: file format elf32-tradlittlemips Disassembly of section .text: 00000000 <foo>: 0: 8c820004 lw v0,4(a0) 4: 03e00008 jr ra 8: 00000000 nop c: 00000000 nop |