Skip to content

Commit 88fd0ef

Browse files
committed
bench(WIP): integrate the size extension into test for getting feed back
Signed-off-by: willieyz <willie.zhao@chelpis.com>
1 parent 6439c2a commit 88fd0ef

File tree

3 files changed

+106
-828
lines changed

3 files changed

+106
-828
lines changed

examples/basic/Makefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ ifeq (,$(findstring $(CROSS_PREFIX),$(CC)))
1111
CC := $(CROSS_PREFIX)$(CC)
1212
endif
1313

14+
SIZE := $(CROSS_PREFIX)size
15+
1416
# Part A:
1517
#
1618
# mlkem-native source and header files
@@ -80,7 +82,7 @@ $(BINARIES_FULL): $(ALL_SOURCE)
8082
mkdir -p $(BUILD_DIR)
8183
$(CC) $(CFLAGS) $^ -o $@
8284

83-
all: build
85+
all: build size
8486

8587
build: $(BINARIES_FULL)
8688

@@ -89,5 +91,11 @@ run: $(BINARIES_FULL)
8991
$(EXEC_WRAPPER) ./$(BINARY_NAME_FULL_768)
9092
$(EXEC_WRAPPER) ./$(BINARY_NAME_FULL_1024)
9193

94+
size: build
95+
@echo "=== Size info for binaries ==="
96+
$(SIZE) $(BINARY_NAME_FULL_512)
97+
$(SIZE) $(BINARY_NAME_FULL_768)
98+
$(SIZE) $(BINARY_NAME_FULL_1024)
99+
92100
clean:
93101
rm -rf $(BUILD_DIR)

0 commit comments

Comments
 (0)