Lecture 6 Flashcards
-o
destination of output
-c
creates an object file
-Wall
Enables all warnings about “questionable” constructions: eliminate potential sources of bugs before even running your program
-Werror
Recommend for final submissions: turns all warnings into errors
forcing you to fix questionable code.
-std=
Selects a specific C standard
-pedantic
Issue all the warnings demanded by strict C standard
-g
Generate a “debugging section” in the executable object that includes information like source filenames, and C statement to machine code mappings
CC
C compiler
CFLAGS
C flags
CPPFLAGS
C preprocessor flags
LDFLAGS
linker flags
step
single step
next
step to next line (could jump over one line loops, function calls, etc.)
info break
list breakpoints and information about them
clear line-or-function-name
clears the breakpoint at some line or function