aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2023-05-29 16:10:48 -0500
committerCalvin Rose <calsrose@gmail.com>2023-05-29 16:10:48 -0500
commit4782a76bcab1d6ad6af4a1bc821d6b3604d5300b (patch)
tree78bc034329c8c0dcf985685bfda27169a3902b84 /Makefile
parentBe more selective when testing FFI. (diff)
Add inital bytecode optimizations for #1163
This removes unnecessary movn, movf, lds, and a few other instructions. Any instructions that has not side effects and writes to a slot that isn't used can be removed. A number of other optimizations can follow from this: - Implement the def-aliasing-var optimization better - This function can be iterated as a fix point until no more instructions are removed. - If we implement slot renaming, then we no longer need to free slots and can simplify the initial code generation a lot.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d6d7330d..cd5cfb3f 100644
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,7 @@ LDFLAGS?=-rdynamic
RUN:=$(RUN)
COMMON_CFLAGS:=-std=c99 -Wall -Wextra -Isrc/include -Isrc/conf -fvisibility=hidden -fPIC
-BOOT_CFLAGS:=-DJANET_BOOTSTRAP -DJANET_BUILD=$(JANET_BUILD) -O0 $(COMMON_CFLAGS)
+BOOT_CFLAGS:=-DJANET_BOOTSTRAP -DJANET_BUILD=$(JANET_BUILD) -O0 $(COMMON_CFLAGS) -g
BUILD_CFLAGS:=$(CFLAGS) $(COMMON_CFLAGS)
# For installation