Created
February 1, 2015 17:55
-
-
Save woodbridge/68af109cbb1694f06440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/Dropbox/Columbia/classes/freshman/spring/ap/lab1/part2 (master★) > make clean | |
rm -f *.o a.out core main convert | |
~/Dropbox/Columbia/classes/freshman/spring/ap/lab1/part2 (master★) > ls -la | |
total 16 | |
drwxr-xr-x@ 4 justin staff 136 Feb 1 12:55 . | |
drwxr-xr-x@ 16 justin staff 544 Feb 1 12:49 .. | |
-rw-r--r--@ 1 justin staff 957 Feb 1 12:55 Makefile | |
-rw-r--r--@ 1 justin staff 530 Feb 1 12:40 main.c | |
~/Dropbox/Columbia/classes/freshman/spring/ap/lab1/part2 (master★) > make | |
gcc -g -Wall -c -o main.o main.c | |
gcc -o convert main.o | |
~/Dropbox/Columbia/classes/freshman/spring/ap/lab1/part2 (master★) > ls -la | |
total 48 | |
drwxr-xr-x@ 6 justin staff 204 Feb 1 12:55 . | |
drwxr-xr-x@ 16 justin staff 544 Feb 1 12:49 .. | |
-rw-r--r--@ 1 justin staff 957 Feb 1 12:55 Makefile | |
-rwxr-xr-x@ 1 justin staff 8792 Feb 1 12:55 convert | |
-rw-r--r--@ 1 justin staff 530 Feb 1 12:40 main.c | |
-rw-r--r--@ 1 justin staff 3320 Feb 1 12:55 main.o | |
~/Dropbox/Columbia/classes/freshman/spring/ap/lab1/part2 (master★) > echo "-1" | ./convert | |
signed dec: -1 | |
unsigned dec: 4294967295 | |
hex: ffffffff | |
binary: 1111 1111 1111 1111 1111 1111 1111 1111 | |
~/Dropbox/Columbia/classes/freshman/spring/ap/lab1/part2 (master★) > | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment