2025-09-07 21:12:31 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -e
|
2025-09-11 20:22:17 +00:00
|
|
|
set -v
|
2025-10-08 20:59:46 +00:00
|
|
|
mkdir -p bin
|
2025-10-08 20:59:51 +00:00
|
|
|
SRC=bin/stencils.c
|
2025-10-04 20:57:45 +00:00
|
|
|
DEST=src/copapy/obj
|
2025-10-22 21:17:53 +00:00
|
|
|
python3 stencils/generate_stencils.py $SRC
|
2025-10-04 20:57:45 +00:00
|
|
|
mkdir -p $DEST
|
2025-10-14 21:06:52 +00:00
|
|
|
gcc --version
|
|
|
|
|
#gcc -c $SRC -O0 -o $DEST/stencils_x86_64_O0.o
|
|
|
|
|
#gcc -c $SRC -O1 -o $DEST/stencils_x86_64_O1.o
|
|
|
|
|
#gcc -c $SRC -O2 -o $DEST/stencils_x86_64_O2.o
|
2025-10-04 20:57:45 +00:00
|
|
|
gcc -c $SRC -O3 -o $DEST/stencils_x86_64_O3.o
|
2025-09-30 21:18:58 +00:00
|
|
|
|
2025-09-30 21:19:44 +00:00
|
|
|
mkdir bin -p
|
2025-10-18 21:10:40 +00:00
|
|
|
gcc -Wall -Wextra -Wconversion -Wsign-conversion \
|
|
|
|
|
-Wshadow -Wstrict-overflow -Werror -g -O3 \
|
|
|
|
|
-DENABLE_LOGGING
|
|
|
|
|
src/coparun/runmem.c src/coparun/coparun.c src/coparun/mem_man.c -o bin/coparun
|
2025-10-04 20:57:45 +00:00
|
|
|
#x86_64-w64-mingw32-gcc -Wall -Wextra -Wconversion -Wsign-conversion -Wshadow -Wstrict-overflow -Werror src/runner/runmem2.c -Wall -O3 -o bin/runmem2.exe
|