Reverse Engineering for Beginners

(avery) #1

APPENDIX F. CHEATSHEETS APPENDIX F. CHEATSHEETS


F.3 MSVC


Some useful options which were used through this book.


option meaning
/O1 minimize space
/Ob0 no inline expansion
/Ox maximum optimizations
/GS- disable security checks (buffer overflows)
/Fa(file) generate assembly listing
/Zi enable debugging information
/Zp(n) pack structs onn-byte boundary
/MD produced executable will useMSVCR*.DLL

Some information about MSVC versions:55.1 on page 625.


F.4 GCC


Some useful options which were used through this book.


option meaning
-Os code size optimization
-O3 maximum optimization
-regparm= how many arguments are to be passed in registers
-o file set name of output file
-g produce debugging information in resulting executable
-S generate assembly listing file
-masm=intel produce listing in Intel syntax
-fno-inline do not inline functions

F.5 GDB.


Some of commands we used in this book:

Free download pdf