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.

Computer Science & Information Technology

You might also like to view...

Estimate the time in milliseconds to commit a transaction in your local DBMS.

What will be an ideal response?

Computer Science & Information Technology

The popular compression technique known as ____ code sets is often used to compress text but can also be used with other forms of data.

a. bits-per-sample b. index c. variable-length d. concatenation

Computer Science & Information Technology