Question: This is a Linux class I need with Writeup questions please. Lab Writeup Answer the following questions in the comment box on Moodle: 1. What
Lab Writeup Answer the following questions in the comment box on Moodle: 1. What is the compiler option to enable level 2 optimization? 2. What is the compiler option to define a macro called CAPACITY with a value of 100? 3. Give the compiler line which will create an executable called 'lab1-18' from a source code file called 'lab1 18.cpp' using return-type warnings and pendantic- errors. 4. Look at the man page for g++ and pick one architecture-related compiler option not listed in this lab. Name the option and describe what the man page says it does. 5. What is the purpose of the time utility? 6. How does the time utility differ from the gprof utility? 7. Look at the man page for time. What format token is used to tell time to output the average total memory use of the executable? 8. What compiler option must you use to enable profiling with the gprof utility
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
