From ff61979f99e7dad339c523117e3daccdbeb9e659 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 19 Dec 2023 05:35:18 -0800 Subject: [PATCH 1/2] Be more explicit about -O0 -g in 2019/endoh --- 2019/endoh/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/2019/endoh/Makefile b/2019/endoh/Makefile index 473de4155..fb322c5de 100644 --- a/2019/endoh/Makefile +++ b/2019/endoh/Makefile @@ -65,7 +65,9 @@ CINCLUDE= # Optimization # -OPT= +# We MUST DISABLE THE OPTIMISER AND ENABLE -g because the entry is A BACKTRACE +# QUINE and NEEDS debugging symbols. +OPT= -O0 -g # Default flags for ANSI C compilation # @@ -129,6 +131,9 @@ all: data ${TARGET} clean clobber install love haste waste maker easter_egg \ sandwich supernova deep_magic magic charon pluto +# We FORCE the use of -O0 -g even if someone overrides it because this entry is +# a BACKTRACE QUINE and NEEDS DEBUGGING SYMBOLS. +# ${PROG}: ${PROG}.c ${CC} ${CFLAGS} -g $< -o $@ ${LDFLAGS} From 850abc4f37ca6b167112a9a79bd6e881ed0b2e38 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 19 Dec 2023 05:39:40 -0800 Subject: [PATCH 2/2] Update 2019/endoh/README.md about optimiser I could have sworn I did this but it doesn't seem to be done, perhaps because of a merge before I was ready (git stash; git pull .. ; git stash pop) but this is not clear. --- 2019/endoh/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/2019/endoh/README.md b/2019/endoh/README.md index b4ce509d8..43d022325 100644 --- a/2019/endoh/README.md +++ b/2019/endoh/README.md @@ -4,6 +4,9 @@ make ``` +NOTE: we FORCE disable the optimiser and FORCE enable `-g` as this is a +BACKTRACE QUINE and NEEDS debugging symbols. + ### Bugs and (Mis)features: