moved
This commit is contained in:
parent
d796077e7c
commit
24be4c3472
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
target/
|
17
build
17
build
|
@ -1,9 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#~/stuff/zig/zig cc -static -nostdlib -nodefaultlibs meow.s -o amogus || exit
|
mkdir -p target
|
||||||
#gcc -static -nostdlib -nodefaultlibs meow.s -o amogus.o || exit
|
gcc -c meow.s -o target/amogus.o || exit
|
||||||
gcc -c meow.s -o amogus.o || exit
|
gnu() { shift 1 && gcc "$@"; }
|
||||||
~/stuff/zig/zig cc -static -nostdlib -nodefaultlibs amogus.o -o amogus || exit
|
"$(command -v ~/stuff/zig/zig || echo gnu)" \
|
||||||
#clang -static -nostdlib -nodefaultlibs meow.s -o amogus || exit
|
cc -static -nostdlib -nodefaultlibs target/amogus.o -o target/amogus || exit
|
||||||
objdump -d amogus
|
objdump -d target/amogus
|
||||||
strip -K entry amogus
|
strip --strip-section-headers -K entry target/amogus
|
||||||
du -b amogus
|
du -b target/amogus
|
||||||
|
|
||||||
|
|
2
test
2
test
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
./build && gdb -iex 'set confirm no' -ex 'run' amogus
|
./build && gdb -iex 'set confirm no' -ex 'run' target/amogus
|
||||||
|
|
Loading…
Reference in a new issue