blob: 6e1f512f04617b35255abd6504fd4329f3ddbb6e (
plain) (
tree)
|
|
# Copyright (c) 2020 Johannes Stoelp
show: entry
#gdb -q --batch -ex 'starti' -ex 'x/g $$rsp' -ex 'x/s *(char**)($$rsp+8)' ./$^
./entry 1 2 3 4
entry: entry.S entry.c
gcc -o $@ \
-I ../include \
-Wall -Wextra \
-static \
-nostartfiles -nodefaultlibs \
-g -O0 \
$^
clean:
rm -f entry
|