In compilation, different formats of object files (binary files) are used. In th
ID: 3836410 • Letter: I
Question
In compilation, different formats of object files (binary files) are used. In the following sequence, hello.o and hello.out are both object files. gcc -o hello. e - o hello o gcc hello.o - o hello.out Which file is executable? What is the name of the process generating hello.o from hello.e? What is the name of the process generating hello.out from hello.o? When you compile a C program using gee versus using gee -q, the latter (gee -g) generates a slightly larger object file. For instance, in the example, gcc generates a.out of 8432 bytes while -q generates a.out of 8696 bytes. Explain why is this case? And what information is the extra space used to store in the a.out file generated by gee - g? > gee demol.c > Is - 1 a.out - - xr - x 1 user staff 8432 May 6 07105 a.out > gee - g demo 1.c > is - 1 a.out - - xx - x 1 user staff #696 May 6 07105 a.outExplanation / Answer
1.a) GCC –c hello.c –o hello.c
1.b )Generally that takes place in the assembly stage. And some compilers contains in build assemblies. Then we simple call it as Compilation.
1.c) .out is final executable final output file that gets from Linker editor also.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.