Starting from:

$30

ECE 2035 Homework 1 

ECE 2035 Homework 1 
This is a warm-up project whose objective is for you to set up the infrastructure you need for
subsequent assignments.
HW1-1: The goal of this part is to use a Linux/Unix environment and become familiar with its
facilities. Toward this end, you must either acquire/access and run an appropriate Linux/Unix
distribution that fits your computing environment or connect to a machine in the Klaus 1448
Linux cluster. Then perform the following exercises.
1. Create and edit a text file that contains the following:
• Tell one interesting fact about yourself.
• Which Linux/Unix distribution are you using (e.g., Ubuntu 14.04.03)?
• The method you are using to run Linux/Unix. Some examples:
• Unix underlying Mac OS X
• VMware on Windows 10 (recommended for Windows 10 users)
• Virtual Box on Windows 8.1
• Dual booting Ubuntu 12.04 and Windows 7
• Red Hat on Linux machines in Klaus room 1448
• Running native Ubuntu 14.04.3 LTS
2. Find a suitable application to capture a screenshot which shows your text file open in
an editor, running under Linux/Unix.
3. Submit your screenshot in jpeg format in a file of size no greater than 200K.
In order for your solution to be properly received and graded, there are a few requirements.
1. The file must be named HW1-1.jpg.
2. The file must be less than 200K bytes.
3. Your solution must be properly uploaded to the T-square site before the scheduled due
date, 5:00pm on Wednesday, 1 June 2016.
HW1-2: The goal of this part of the project is to modify a short C program, compile it using the
GNU C Compiler gcc, and run it. A program shell HW1-2-shell.c is provided. You must
copy/rename it to HW1-2.c and modify it to determine the index the SetA[i] would have if
Set A were sorted in ascending order. SetA is always of size 10. Print the result as follows.
Suppose SetA[3] == 42 and 42 is the largest element of SetA. Then print: “SetA[3]
is 42, and if setA were sorted it would be in SetA[9]” without the
double quotes of course
You should design, implement, and test your own code. Otherwise you won’t learn the things
you need to know for later parts of the projects. Any submitted assignment containing nonshell code that is not fully created and debugged by the student constitutes academic
misconduct.
You should open a “terminal window” to run gcc under Ubuntu (type man gcc for compiler
usage or look up GCC online documentation on the internet). Note that in the terminal window,
you can enter any of the Linux commands (such as ls, cd, cp; for reference see
http://users.ece.gatech.edu/~linda/2035/Linux_Cmd_Cheatsheet.pdf). Use the linux command
cd to change your current working directory to the directory in which you placed the shell
program. For example,
cd ~/Documents/2035/hw1
You can list the files in that directory using
ls -la
1
ECE 2035 Homework 1 Summer 2016
You can copy a file using cp or rename a file using mv (move a file to a new file). For example:
cp HW1-2-shell.c HW1-2.c
Once you write your program, you can compile and run it using the Linux command line:
gcc HW1-2.c –g –Wall –o HW1-2
./HW1-2
You should become familiar with the compiler options specified by these flags.
In order for your solution to be properly received and graded, there are a few requirements.
1. The file must be named HW1-2.c.
2. You name and the date should be included in the header comment.
3. The starting shell program should not be modified except for the replacement of the
comment “// insert your code here” and the addition of declared local variables.
4. Your solution must be properly uploaded to T-square before the scheduled due date,
5:00pm on Wednesday, 1 June 2015.
HW1-3: The goal of this part is for you to install MiSaSiM, modify a short assembly program
HW1-3-shell.asm, simulate, test and debug it in MiSaSiM. The MiSaSiM simulator can be
installed according to the instructions at www.ece.gatech.edu/~scotty/misasim/. Copy or rename
the shell program to HW1-3.asm and modify it to determine the index that SetA[i] would have
if the elements of SetA (always of size 10) were sorted in ascending order. That index must be
stored at memory location Result.
In order for your solution to be properly received and graded, there are a few requirements.
1. The file must be named HW1-3.asm.
2. Your name and the date should be included in the beginning of the file.
3. The starting shell program should not be modified except for the replacement of the comment “# write your code here...”
4. Your program must store its result at Result when it returns. This answer is used to
check the correctness of your code.
5. Your program must return to the operating system via the jr instruction. Programs that
include infinite loops or produce simulator warnings or errors will receive zero credit.
6. Your solution must be properly uploaded to T-square before the scheduled due date,
5:00pm on Wednesday, 1 June 2015.
2

More products