What do the following commands do on your UNIX or LINUX system,? Where does the output of these commands go?
a. gcc myProg.c
b. gcc myProg.c -o myProg
c. gcc -o myProg myProg.c
d. gcc myProg.c -o myProg.c
e gcc myProg.c -o myProg -lm -lsocket
f. gcc -E myProg.c
g. gcc -E myProg.c > myProg.i
h. gcc -S -DSIZE=256 myProg.c
i. gcc -S -DSIZE=256 myProg.c -o myProg
a. Compiles the C program in the myProg.c file and produces a binary called a.out. The output goes to the screen.
b. Compiles the C program in the myProg.c file and produces a binary called myProg. Again the output goes to the screen.
c. Same as the previous command
d. Compiles the program and creates a binary called myProg.c thus overwriting the source of the program. The output of the command goes to the screen.
e. Compiles the program with the math and socket libraries. The binary is called myProg and the output is displayed on the screen.
f. Only goes to the preprocessing stage and displays the preprocessing output to the screen.
g. Same as the previous command. This time the output of the command is sent to the file myProg.i
h. Only compiles the program and converts it to assembly code without assembling it. A macro SIZE with the value 256 is also defined in the code. The output of the command is displayed on the screen.
i. A compiled binary called myProg and the unassembled Assembly code files are generated. The SIZE macro is defined once again. The output of the command is again sent to the screen.
You might also like to view...
A try block must have at least one catch block.
Answer the following statement true (T) or false (F)
Under which of the following conditions does the collision in a hash table happen?
a. The hash table is full and there is not more space b. When the input hashes to an already occupied hash table slot c. On every insert in the hash table d. When the input hashes to an empty hash table slot.
Typically, most information flows:
A) downward and horizontally. B) upward and vertically. C) Both A and B. D) Neither A nor B.
To use the Format Painter to copy only ____________________ attributes, such as font and font effects, select text that has these qualities.
Fill in the blank(s) with the appropriate word(s).