diff options
| author | 2025-03-03 17:47:54 +0330 | |
|---|---|---|
| committer | 2025-03-03 17:47:54 +0330 | |
| commit | 37efc8274f94521a60a5156c00fb26e258371d8d (patch) | |
| tree | 8ba8e9cc9fc9ac84b6ad5495cf8e72e8a8ac4b15 /Makefile | |
| parent | updated get and set (diff) | |
hasharray, map, reduce, more better C!
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -1,8 +1,12 @@ -FLAGS = -Wno-incompatible-library-redeclaration -nostartfiles +FLAGS = -Wno-incompatible-library-redeclaration -nostartfiles -nostdlib SIZE_FLAGS = -Wl,--undefined=main -flto -Oz -ffunction-sections -fdata-sections -Wl,--gc-sections -Wl,--strip-all -finline-hint-functions -fno-builtin -Wl,--print-gc-sections -fno-unwind-tables -fomit-frame-pointer -fno-asynchronous-unwind-tables -fno-ident -fvisibility=hidden -march=native -Wl,--build-id=none all: m4 c test +clean: + rm -rf out.* + rm -rf *.m4.h + m4: m4 moonshine.m4 > moonshine.m4.h @@ -17,16 +21,6 @@ profile: perf record ./out.bin.profile perf report > ./out.profile.txt -# useless. it don't work. -# profile: -# clang -D__MOONSHINE_PROFILER main.c -o out.bin.profile $(FLAGS) $(SIZE_FLAGS) -fprofile-generate -# echo NOTE: Let the program run completely and provide it with typical inputs. -# ./out.bin.profile -# llvm-profdata merge -output=default.profdata profile.profraw -# rm -rf profile.profraw -# clang main.c -o out.bin.release $(FLAGS) $(SIZE_FLAGS) -fprofile-use -# rm -rf profile.profdata - release: clang main.c -o out.bin.release $(FLAGS) $(SIZE_FLAGS) |
