-
Notifications
You must be signed in to change notification settings - Fork 37
Add no-stdlib build for mlkem-native #1153
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
base: main
Are you sure you want to change the base?
Conversation
4fdf64b
to
2e4aaaa
Compare
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.
This README still needs to be adjusted
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, thanks for the reminder!
I have addressed this and re-pushed the changes,
including
examples/README.md
,examples/multilevel_build_no_stdlib/README.md
mlkem/README.md
and also added this example to base.yml
for the CI tests.
faec912
to
cebb880
Compare
examples/README.md
Outdated
with `-nostdlib` flag, the `mlk_memcpy` and `mlk_memset` are replaced by custom implementation. | ||
in such a way that level-independent code with no stadard libary is shared. |
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.
Please fix the grammar
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.
Hello Hanno, thank you for reviewing!
I have addressed the grammar issue and also restructured the explanation in what I believe is a better format.
I know this README is intended for users and serves as a formal document,
please feel free to let me know if there is anything you find inappropriate. I will make the adjustments until it meets expectations.
-Wno-unknown-pragmas \ | ||
-Wno-unused-command-line-argument \ | ||
-fomit-frame-pointer \ | ||
-DMLK_CONFIG_NAMESPACE_PREFIX=mlkem \ |
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.
nit: indentation
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.
Hello Hanno, thank you for reviewing!
I have addressed the indentation issue.
Additionally, since this Makefile is based on examples/multilevel_build/Makefile
, and the same indentation issue appeared there as well, I have fixed it too.
709a22c
to
abfc2dc
Compare
abfc2dc
to
b9ee08d
Compare
b9ee08d
to
37163aa
Compare
- This commit add an example demonstrating how to build mlkem-native without the standard library (-nostdlib) - Create an example folder named `multilevel_build_no_stdlib` - Add the `example_no_stdlib_config.h` reference from `test/custom_stdlib_config.h`, this config provide custom implementations for mlk_memcpy and mlk_memset - Add the `-nostdlib` cflag during generating objects file. - Integrate this example to the `tests` script and ./Makefile - Add this example to the `base.yml` for CI testing Signed-off-by: willieyz <[email protected]>
37163aa
to
e847379
Compare
-nostdlib
)multilevel_build_no_stdlib
example_no_stdlib_config.h
reference fromtest/custom_stdlib_config.h
,this config file provide custom implementations for
mlk_memcpy
andmlk_memset
-nostdlib
cflag during generating objects file.tests
script and./Makefile