You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Building.md
+38-36Lines changed: 38 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,11 @@ the full test suite.
28
28
29
29
### Building with CMake
30
30
31
-
A modern cmake configuration is provided in CMakeLists.txt that can
32
-
build, test and install QCBOR. The installation includes cmake package
33
-
files for easy installation, use of the QCBOR library by cmake-based
34
-
and non-cmake-based dependents and integration into a larger
35
-
cmake-based project.
31
+
A modern CMake configuration is provided in CMakeLists.txt that can
32
+
build, test, and install QCBOR. The installation includes CMake package
33
+
files for easy installation, use of the QCBOR library by CMake-based
34
+
and non-CMake-based dependents, and integration into a larger
35
+
CMake-based project.
36
36
37
37
Generally, no configuration is needed, but there are a few build
38
38
options:
@@ -43,7 +43,7 @@ options:
43
43
| `-DBUILD_QCBOR_WARN=ON` | Compiler warnings are off by default; this turns on the warnins used in QCBOR continuous integration.
44
44
| `-DBUILD_QCBOR_TEST=APP` | Builds the tests as an executable. Tests are off by default.
45
45
| `-DBUILD_QCBOR_TEST=LIB` | Builds the tests as a library.
46
-
| `-DQCBOR_DISABLE_XXX=ON` | Disables feature XXX to reduce code size. See descriptions below. The name of the cmake option is the same as the #define.
46
+
| `-DQCBOR_DISABLE_XXX=ON` | Disables feature XXX to reduce code size. See descriptions below. The name of the CMake option is the same as the `#define`.
47
47
48
48
Building the QCBOR library:
49
49
@@ -72,6 +72,8 @@ cmake --build <build_folder>
72
72
@anchor CodeSize
73
73
## Code Size
74
74
75
+
TODO: The sizes in this section need to be updated for QCBOR v2.
76
+
75
77
These are approximate sizes on a 64-bit x86 CPU with the -Os optimization.
76
78
All `QCBOR_DISABLE_XXX` are set and compiler stack frame checking is disabled
77
79
for smallest but not for largest. Smallest is the library functions for a
@@ -128,7 +130,7 @@ and standard tag types.
128
130
The primary control over the amount of QCBOR code that is linked into
129
131
an application is in which functions are actually used. When linking
130
132
against a library, or when dead-code stripping is enabled, any code
131
-
that is not explicitly referenced will not be linked. For, example
133
+
that is not explicitly referenced will not be linked. For example,
132
134
never calling number conversion functions will result in less linked
133
135
code.
134
136
@@ -143,7 +145,7 @@ depend on factors such as the target CPU, compiler, compiler options,
143
145
build configuration, and the specific QCBOR functions used.
0 commit comments