Assembly Language for Beginners

(Jeff_L) #1

.6. CHEATSHEETS
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 MSVCR.DLL


Some information about MSVC versions:5.1.1 on page 699.


.6.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

.6.5 GDB..


Some of commands we used in this book:

Free download pdf