Lars Gierth 0bf4e4b9cd cnacl: add mips64 plan | пре 9 година | |
---|---|---|
.. | ||
commandline | пре 11 година | |
cpucycles | пре 11 година | |
cpuid | пре 11 година | |
crypto_auth | пре 11 година | |
crypto_box | пре 11 година | |
crypto_core | пре 11 година | |
crypto_hash | пре 9 година | |
crypto_hashblocks | пре 9 година | |
crypto_onetimeauth | пре 9 година | |
crypto_scalarmult | пре 9 година | |
crypto_secretbox | пре 11 година | |
crypto_sign | пре 11 година | |
crypto_stream | пре 9 година | |
crypto_verify | пре 11 година | |
curvecp | пре 11 година | |
inttypes | пре 11 година | |
node_build | пре 9 година | |
okcompilers | пре 9 година | |
randombytes | пре 10 година | |
tests | пре 10 година | |
.gitignore | пре 11 година | |
MACROS | пре 11 година | |
OPERATIONS | пре 11 година | |
PROTOTYPES.c | пре 11 година | |
PROTOTYPES.cpp | пре 11 година | |
README.md | пре 11 година | |
do | пре 11 година | |
measure-anything.c | пре 11 година | |
try-anything.c | пре 11 година | |
version | пре 11 година |
If you would like to be confusing, you could pronounce it sea-salt
This is a fork NaCl by Daniel J. Bernstein and Tanja Lange. The build has been ported to cmake so it can be cross compiled and build output is reliable. Since it uses cmake, it could theoretically be built on windows but this has not been tested. It does compile using mingw32.
mkdir cbuild
cd cbuild
cmake ..
make
mkdir cbuildw32
cd cbuildw32
cmake -DCMAKE_TOOLCHAIN_FILE=../CMakeWindows.txt ..
make
NaCl builds using a shell script called ./do
. This script does compiling, testing, measuring
and selection of the best implementation of each algorithm for the given machine. It also generates
the header files which will be used.
The problems with ./do
are it's slow, it tries compiling with multiple different compiler
profiles, it's very platform independent but it doesn't run on Windows and most importantly, with
compiling, testing and measuring so tightly bound, it is impossible to cross compile for a
different operating system.
The first time you build for a new ABI, it will trigger the traditional nacl ./do
script.
What cNaCl does is parse the resulting headers from the ./do
build and create a plan so that it
can repeat roughly the same build.
If there is already a plan for the given ABI, the build uses this plan and the build is very fast.
Plans are stored in ./cmake/plans/
and I will be adding plans as I find new ones.
There is a problem with the ./do
build which prevents it from running on some ARM based machines,
this was fixed by adding a more lax method for measuring CPU speed as a fall back.
#EOF#