Fixes in 2019/endoh

Remove optimisation from Makefile and add -g to compile line as it's a
backtrace quine.

Add to .gitignore prog2.c as the author's comments suggest a command
that will create it.

I believe that the llvm should be lldb as that's the debugger (macOS)
and the llvm tools are not.

Format fixes in README.md.
This commit is contained in:
Cody Boone Ferguson committed 2023-04-03 09:14:19 -07:00
1 parent 1b0e5d4c40
commit 349194249d
3 files changed
+10 -9

No files matched your search

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