Skip to content

Commit

Permalink
sct: towards jasmin-ct
Browse files Browse the repository at this point in the history
  • Loading branch information
tfaoliveira committed Jun 25, 2024
1 parent 3ac3620 commit 70eb190
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ CC ?= clang
CFLAGS ?= -O3 -Wall -Wextra -Wpedantic -Wvla -Werror -std=c99 \
-Wundef -Wshadow -Wcast-align -Wpointer-arith -Wmissing-prototypes \
-fstrict-aliasing -fno-common -pipe
JASMIN ?= jasminc

JASMIN ?= jasminc
JASMIN_CT ?= jasmin-ct

# --------------------------------------------------------------------
CI ?= 0
Expand Down
9 changes: 5 additions & 4 deletions src/Makefile.checksct
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

ifneq ($(OP),)

SCT_FLAGS ?=
# TODO: remove --infer
SCT_FLAGS ?= --infer

CHECK_SCT_S = ($(JASMINC) -slice $* -checkSCT $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
CHECK_SCT = ($(JASMINC) -checkSCT $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
CHECK_SCT_SLICE = ($(JASMIN_CT) $(JINCLUDE) -slice $* --sct $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)
CHECK_SCT = ($(JASMIN_CT) $(JINCLUDE) --sct $(SCT_FLAGS) $< > $@ 2>&1) $(CIT)

SCT_TARGETS = $(addsuffix .sct, $(FUNCTIONS))

Expand All @@ -21,7 +22,7 @@ $(OP).sct : $(OP).jazz $(DEPS_DIR)/$(OP).sct.d | $(DEPS_DIR) $(CI_DIR)
$(SCT_TARGETS):
%.sct : $(OP).jazz $(DEPS_DIR)/%.sct.d | $(DEPS_DIR) $(CI_DIR)
$(DEPS)
$(CHECK_SCT_S)
$(CHECK_SCT_SLICE)

DEPFILES := \
$(DEPFILES) \
Expand Down
3 changes: 3 additions & 0 deletions src/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ endif
JEXT ?= jazz
override JFLAGS += -noinsertarraycopy
JINCLUDE = -I Jade:$(SRC)

JASMIN ?= jasminc
JASMINC := $(JASMIN) $(JFLAGS) $(JINCLUDE)
COMPILE = ($(JASMINC) -o $@ $<) $(CIT)

JASMIN_CT ?= jasmin-ct

# --------------------------------------------------------------------
include $(SRC)/$(OPERATION)/EcFlags.mk

Expand Down

0 comments on commit 70eb190

Please sign in to comment.