Linux Flashcards

0
Q

When you run gcc on a .o file what happens

A

You produce an object file containing code to run on a computer like object.o

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

What is the typical c compiler for linux

A

Gcc

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

What is the command to produce an object file with gcc

A

gcc -c

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

Can you cat a binary file

A

F

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

What exists in a .o file

A

Text (macine code), autodata( read only data), data (global variables– local variables are on the stack in stead), symbol table (different global vars or funcs refered to by the module (address or undefined)

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

Every object file starts with 0

A

T

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