Merge pull request #272 from xexyl/2019-endoh

This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-04-03 17:17:17 -07:00
commit f9236ea41f
3 files changed
+10 -9

No files matched your search

+1
View File
@@ -1 +1,2 @@
prog
prog2.c
+2 -2
View File
@@ -65,7 +65,7 @@ CINCLUDE=
# Optimization
#
OPT= -O3
OPT=
# Default flags for ANSI C compilation
#
@@ -129,7 +129,7 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
${CC} ${CFLAGS} -g $< -o $@ ${LIBS}
# alternative executable
#
+7 -7
View File
@@ -1,7 +1,7 @@
# Most in need of debugging
Yusuke Endoh
Twitter: @mametter
Yusuke Endoh
Twitter: @mametter
## To build:
@@ -18,17 +18,17 @@ make
## Try:
```sh
gdb ./prog || llvm ./prog
gdb ./prog || lldb ./prog
```
## Judges' comments:
The purpose of this program is to crash. You'll want to have memorized "man
ascii" when debugging it to reveal its purpose.
The purpose of this program is to crash. You'll want to have memorized `man 7
ascii` when debugging it to reveal its purpose.
## Author's comments:
### backtrace quine
### backtrace quine:
Compile prog.c with no optimization.
@@ -78,7 +78,7 @@ See the line numbers and lookup the ASCII table.
101 = 'e'
...
### One more thing
### One more thing:
The original program can be used as a GDB command file.