Question: Write the C code discussed in class in Notepad++. 2. Compile the C code using Gcc 3. Run the code from the Linux command prompt.

Write the C code discussed in class in Notepad++.

2. Compile the C code using Gcc

3. Run the code from the Linux command prompt.

4. Create an assembly code using gcc.

5. Open the s-file using notepad++

6. Explain all the assembly instructions in the s-file.

 Write the C code discussed in class in Notepad++. 2. Compile

Instructions: 1. Compile the hello world C code given below: Write the code below in notepad++ #include Int main (int argc, char* argv[]) { If (argc==2) Printf("Hello %s ", argv[1]); Return 0; } GCC Command: gcc-W-Wall-Wextra-Wpedantic -fno-asynchronous- unwind-tables-00-S-masm=intel hello.c-o hello.s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!