2020 day 25 (C): just copied my (lazy/brute-force) bash solution

This commit is contained in:
2022-10-11 16:51:06 +02:00
parent 5795d24ab4
commit e3d6b622dc
3 changed files with 20 additions and 168 deletions

View File

@@ -1,6 +1,6 @@
INPUT := INPUT.txt
SHELL := /bin/bash
CFLAGS := -w -g
CFLAGS := -w -g -O3
#CFLAGS := -w -g -pg
#CFLAGS := -w -O3
TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n"
@@ -13,15 +13,15 @@ all: ex1
output:
@$(MAKE) --no-print-directory all 2>&1 > OUTPUT
compile: ex1-c ex2-c
compile: ex1-c
ex1:
ex1: ex1-c
@$(TIME) ex1.bash < $(INPUT) 2>&1
@#$(TIME) ex1-c 2020 < $(INPUT) 2>&1
@$(TIME) ex1-c < $(INPUT) 2>&1
ex2:
@$(TIME) ex2.bash < $(INPUT) 2>&1
@#$(TIME) ex1-c 30000000 < $(INPUT) 2>&1
@#$(TIME) ex2.bash < $(INPUT) 2>&1
@#$(TIME) ex1-c < $(INPUT) 2>&1
clean:
@rm -f ex1-c ex2-c core