Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: make hw7 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions hw07-asm-bignum-addition/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ hw7setup: hw7.o cppadd128.o
$(CXX) hw7.o cppadd128.o -o hw7setup

# the homework is to write add128.s to add two 128 bit numbers
hw7: hw7.o add128.s
hw7: hw7.o add128.o
$(CXX) hw7.o add128.o -o hw7 #link the two .o files together into a program
hw7.o: hw7.cc
$(CXX) -c hw7.cc # compile only
Expand All @@ -17,10 +17,9 @@ cppadd128.o: cppadd128.cc
$(CXX) -S cppadd128.cc # generate the assembler to look at

add128.o: add128.s
as add128.s # run the assembler and generate the .o file
as add128.s -o add128.o # run the assembler and generate the .o file

#note: do not delete add.s, that's your source code!
#note: deleting *.exe below is under windows. On linux you must delete hw2 and hw2setup
clean:
rm cppadd128.s *.o *.exe hw7 hw7setup