Lecture 6 Flashcards

1
Q

-o

A

destination of output

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

-c

A

creates an object file

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

-Wall

A

Enables all warnings about “questionable” constructions: eliminate potential sources of bugs before even running your program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

-Werror

A

Recommend for final submissions: turns all warnings into errors
forcing you to fix questionable code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

-std=

A

Selects a specific C standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

-pedantic

A

Issue all the warnings demanded by strict C standard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

-g

A

Generate a “debugging section” in the executable object that includes information like source filenames, and C statement to machine code mappings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CC

A

C compiler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

CFLAGS

A

C flags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CPPFLAGS

A

C preprocessor flags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

LDFLAGS

A

linker flags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

step

A

single step

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

next

A

step to next line (could jump over one line loops, function calls, etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

info break

A

list breakpoints and information about them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

clear line-or-function-name

A

clears the breakpoint at some line or function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

delete breakpoints

A

delete all breakpoints

17
Q

info locals

A

list local variables

18
Q

set var x=4

A

set a variable x to 4

19
Q

bt

A

print a stacktrace (backtrace); useful when debugging programs with many functions