Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HW1-1 (50 points) For any homework, you do in this course, you should work in a protected directory so other students can't copy your work.

image text in transcribed
HW1-1 (50 points) For any homework, you do in this course, you should work in a protected directory so other students can't copy your work. For example, you can do mkdir hu1 chmod go-rux hw1 cd hw1 to create a directory hwn, remove all permissions for other users, and change to working in that directory. You also could protect your entire home directory with "chmod go-rux -" so you won't have to do it later for individual subdirectories. (You can move around with "cd -" "cd hwi", "cd hv2", etc.) Carry out the steps discussed in class to do the four stages of compilation one after another for your own version of the "hello world" C program. Your "own version" should print out a fun fact about yourself, including your name, instead of "Hello World". Use an editor to create hello.c on one of the linux machines (shannon), then create hello.i, hello.s, hello.o, and hello. (An additional exercise that could be of value is to create hello directly from hello.c with a single command and check that you get the same result as after doing the four steps separately.) When you get done, use the command zip hello.zip hello.c hello.i hello.s hello.o hello to create a zip file containing all of your results. Homework is due at the time of day that class starts. Two options to submit your zip file: Easiest if you are working on a Loyola GNU/Linux machine: Copy your file to the directory "rig/c264hwisub with a filename in the form EMAIL-X.zip, where EMAIL is your email address, and x is a "random string of at least 8 alphanumeric characters. The Unix command for this would look similar to: cp hello.zip "rig/c264hwisub/YOUREMAIL ADDRESS-RANDOM.zip where you must put your own things in place of the all caps. (Don't cut and paste from the PDF, or the tilde might not come out right.) Remember that if you submit this way the file must be readable by all, though you will want to have used chmod to protect the directory containing the file. Protections show with the ls -1 command illustrated below. You can verify successful submision by using the "s" command with the same file name you just copied to, specifically you can use a command similar to: ls -l "rig/c264hwisub/YOUREMAIL ADDRESS-RANDOM.zip Or if you prefer: Submit the file through the online submission mechanism on my course web page. Submit it as hello.zip or 1.zip

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions