Short Homework 1 due Wed., Sept. 30 (a week and a day) This homework has two parts. The answer should be handed in using the submit script in the homework subdirectory of the course directory. Part 1: Write your favorite "hello, world" program in C++, and compile it as follows: g++ --verbose hello-world.cpp Examine the output, and then write a low-level command for compiling hello-world.cpp. Note that the arguments for collect2 can usually be passed directly to the g++ command. Your command should be of the form: g++ -nostdlib ... hello-world.cpp You must add in explicit references to the missing libraries. Finally, explain what is the purpose of each of the libraries that you explicitly refer to. Some tools that may help you in deciding the purpose of each library are the following Linux commands: nm objdump file strings readelf Try running them with various options on the libraries that you examine. Part 2: [ For the 2015 class, you can skip this part. I've asked systems to install the package with libc.a. Systems had recently upgraded, and we lost libc.a in the upgrade. :-( ] Now do the same for a statically compiled executable. You can compile statically by doing: g++ --verbose -static hello-world.cpp