GCC:
1. -include stdlib.h
2. -c sourcename: only compile
3. -o objectname
4. -g sourcename: generate debug info
5. -ansi
6. -w: close all warning
7. -S: generate assembly lang
GDB:
1. break <func / line>
2. watch <expr>
3. catch <event>
4. clear / delete / disable / enable <func / line>
5. continue / c
6. next / n
7. step / s
8. finish
9. stop / nostop
10. print / p
11. backtrace / bt <n>: print stack info
12. fram / f <n>:
13. up / down <n>
14. info frame : print detailed stack info
15. info args : print current func's para name and value
16. info locals : print current func's local name and value
17. info catch : print current func's exception
18. list / l (set listsize 10)
19. search
20. examine / x <addr>: x /3uh 0x54320