Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 GCC GCC (GNU Compiler Collection) provides a set of compilers for various Pls in Unix-based systems. The collection include C, C++, Objective-C, Fortran, Ada,
1 GCC GCC (GNU Compiler Collection) provides a set of compilers for various Pls in Unix-based systems. The collection include C, C++, Objective-C, Fortran, Ada, and Go. Originally, it was only handling Clanguage (the original name was GNU C Compiler). In this exercise, we are going to investigate how we can compile C programs using this tool. Assume that we have a C program named hello.c. For each of the following, give at proper com- mand using GCC. 1. GCC can be used to compile a C program to object files and link them into an executable, in a single step. (input: hello.c, output: executable binary) 2. GCC can directly compile the source code to object files. (input: hello.c, output: hello.o) 3. GCC includes the capability to invoke the linker that collects a bunch of object files into an exe- cutable. (input: hello.o output: executable binary) 4. GCC can compile the source code to Assembly language. (input: hello.c, output: the Assembly code hello.s) 5. GCC includes the capability to invoke the assembler that translates the Assembly code into object files. (input: the Assembly code hello.s, output: hello.o)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started