GCC/G++ Flashcards

1
Q

-O

A

optimization level 0=no optimization

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

-g

A

add debug symbols

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

-pthread

A

link against pthread library (required for g++)

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

-I

A

specify include directories

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

-o

A

output file name (as opposed to a.out)

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

-x

A

language (c, c++ etc..) not heavily used

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

-c

A

produce .o file from .c/.cpp file

used with makefile targets

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