-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added benchmark script, enabled ARMASM for Cortex-M3,4,7,33 #513
Conversation
@danielinux wow! Hands-clapping! |
arch.mk
Outdated
ifneq ($(NO_ARM_ASM),1) | ||
CORTEXM_ARM_EXTRA_OBJS= \ | ||
./lib/wolfssl/wolfcrypt/src/port/arm/armv8-aes.o \ | ||
./lib/wolfssl/wolfcrypt/src/port/arm/armv8-chacha.o \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs vs spaces? Looks like a few places
docs/compile.md
Outdated
@@ -42,6 +42,28 @@ By default, wolfBoot is compiled for ARM Cortex-M3/4/7. To compile for Cortex-M0 | |||
|
|||
`CORTEX_M0=1` | |||
|
|||
### Speed vs. size | |||
|
|||
On a number of targets, algorithm may be optimized automatically to use assembly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"On a number of targets, algorithm may be optimized automatically to use assembly
optimizations." -> "Some targets support assembly optiomizations by default."?
@@ -0,0 +1,98 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you planning to publish the benchmark.sh results in a CI job like the markdown you posted in the PR description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's the plan. Currently busy rebuilding my on-site infrastracture, I will eventually provide a dedicated jenkins node to run the benchmark.
Adds a
benchmark.sh
script to compare ciphers & options over footprint, runtime memory, boot time.Example output (in .md format): STM32H7 at 320MHz with ~100KB application image: