diff --git a/2021/Makefile b/2021/Makefile index a8c06ab..bc812f3 100644 --- a/2021/Makefile +++ b/2021/Makefile @@ -24,7 +24,7 @@ CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -march=native -CFLAGS += -DDEBUG # activate general debug (debug.c) +CFLAGS += -DDEBUG_DEBUG # activate general debug (debug.c) CFLAGS += -DDEBUG_POOL # memory pools management INCDIR := ./include diff --git a/2021/day11/Makefile b/2021/day11/Makefile index e585a35..bd92198 100644 --- a/2021/day11/Makefile +++ b/2021/day11/Makefile @@ -24,7 +24,7 @@ LDLIB := -l$(LIB) export LD_LIBRARY_PATH = $(LIBDIR) CFLAGS += -std=gnu99 -CFLAGS += -O2 +#CFLAGS += -O2 CFLAGS += -g CFLAGS += -Wall CFLAGS += -Wextra @@ -32,6 +32,9 @@ CFLAGS += -march=native CFLAGS += -Wmissing-declarations CFLAGS += -Wno-unused-result +CFLAGS += -DDEBUG_DEBUG # activate general debug (debug.c) +CFLAGS += -DDEBUG_POOL # memory pools management + TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n" export PATH := .:$(PATH) @@ -52,4 +55,4 @@ clean: .c: @echo compiling $< - @$(CC) $(CFLAGS) $(LDFLAGS) -I $(INCDIR) $< $(LDLIB) -o $@ + $(CC) $(CFLAGS) $(LDFLAGS) -I $(INCDIR) $< $(LDLIB) -o $@ diff --git a/2021/day11/README.txt b/2021/day11/README.txt index 1beea5c..4560914 100644 --- a/2021/day11/README.txt +++ b/2021/day11/README.txt @@ -297,3 +297,7 @@ After step 100: After 100 steps, there have been a total of 1656 flashes. Given the starting energy levels of the dumbo octopuses in your cavern, simulate 100 steps. How many total flashes are there after 100 steps? + +Your puzzle answer was 1739. + +The first half of this puzzle is complete! It provides one gold star: *