update README

update Makefile
cpp
Avril 4 years ago
parent 003dbf27e8
commit eb45ce7212
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -29,7 +29,7 @@ RELEASE_CXXFLAGS?= -O3 -flto $(CXX_OPT_FLAGS)
RELEASE_LDFLAGS?= -O3 -flto RELEASE_LDFLAGS?= -O3 -flto
DEBUG_CFLAGS?= -O0 -g -DDEBUG DEBUG_CFLAGS?= -O0 -g -DDEBUG
DEBUG_CXXFLAGS?= $(DEBUG_CFLAGS) DEBUG_CXXFLAGS?=-O0 -g -DDEBUG
DEBUG_LDFLAGS?= DEBUG_LDFLAGS?=
# Objects # Objects

@ -5,6 +5,8 @@ Automatic copy-on-write semantic memory slices for use in C (and C++)
See `include/cow.h` for documentation on each function. See `include/cow.h` for documentation on each function.
Each function, macro, and type definition in the header will be prefixed with `cow_` or `COW_`. Internal non-prototpyed items use the namespace `_cow_` or `_COW_`. Each function, macro, and type definition in the header will be prefixed with `cow_` or `COW_`. Internal non-prototpyed items use the namespace `_cow_` or `_COW_`.
The C++ interface defines the type `Cow`, a reference-counted wrapper over `cow_t` instances that supports cloning through its subtype, `Cow::Fake`, and automatically ensures the originally created `cow_t` is not destroyed until all its clones are, as well as the namespace `_cow_util` which contains memory accessor helpers `Span<T>` and `Slice<T>` (aka `Span<T>::Slice`).
## Building ## Building
Run `make` to build to build the `release` (optimised) target of the library. Run `make` to build to build the `release` (optimised) target of the library.
It will create four files: `libcow-release.a`, `libcow-release.so`, `libcow.a`, and `libcow.so`. It will create four files: `libcow-release.a`, `libcow-release.so`, `libcow.a`, and `libcow.so`.

Loading…
Cancel
Save