|
|
11 月之前 | |
|---|---|---|
| .. | ||
| include | 11 月之前 | |
| src | 11 月之前 | |
| zephyr | 11 月之前 | |
| CMakeLists.txt | 11 月之前 | |
| Kconfig | 11 月之前 | |
| LICENSE | 11 月之前 | |
| Makefile | 11 月之前 | |
| README.en.md | 11 月之前 | |
| README.md | 11 月之前 | |
following the standard of C11 Annex K (bound-checking interfaces), functions of the common memory/string operation classes, such as memcpy_s, strcpy_s, are selected and implemented.
other standard functions in C11 Annex K will be analyzed in the future and implemented in this organization if necessary.
handles the release, update, and maintenance of bounds_checking_function.
Add all the .c files under /src to the source code listing for the build script.
In the build options, specify the header directory and the build options required for the project (for example, add
-Ipath_to_include -fstack-protector-strong -fPIC -Wall -D_FORTIFY_SOURCE=2 -O2 in CFLAGS).
Generate .o files for each .c file.
Generate static or shared libraries for .o files according to project requirements.
compiling examples:
gcc -o memcpy_s.o -c -Iinclude -fstack-protector-strong -fPIC -Wall -D_FORTIFY_SOURCE=2 -O2 src/memcpy_s.c