|
|
c m s c 311
s p r i n g 2 0 0 3 |
foo: ascii "cat"The two double quotes do NOT appear in the binary file. Just the characters for 'c', 'a', 't'.
The assembler is the extra credit and is NOT due on Friday. It should be turned in separately.
~chs11001/submit p1.tar 1
The makefile should make two targets. This is roughly how your
Makefile should look:
....macros go here....
all: hexdump disassem
hexdump: ...dependencies for hexdump..
disassem: ...dependencies for disassem..
When you run "make", it sees the dependencies as hexdump and disassem. Then, you just have makefile stuff as if you were doing two different makefiles.
It should create a hexdump and disassem executable.
This should indicate what extra credit you did.
Obviously, we need to compile something. In general, we'll just test the executable. The main exception is byteToHex function, just to see it works.
If you wrote byteToHex.cpp, it should compile with cxx -w0 std strict_ansi (which usually means it can handle g++).
If you wrote byteToHex.c, it should compile with cc.
Other than that, I have no real restrictions on whether you use g++ or cxx.
|
See the class syllabus for policies concerning email Last Modified: Fri Feb 14 09:13:38 EST 2003 |
|
|
|
|
|