We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After compiling with -Os -DNDEBUG (-Os optimizes for size, -DNDEBUG removes asserts):
-Os -DNDEBUG
-Os
-DNDEBUG
$ cloc lib 10 text files. 10 unique files. 1 file ignored. github.com/AlDanial/cloc v 1.80 T=0.01 s (613.7 files/s, 99896.9 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C 5 117 259 766 C/C++ Header 4 57 101 165 ------------------------------------------------------------------------------- SUM: 9 174 360 931 -------------------------------------------------------------------------------
So under 1000 LOC. That's pretty good :)
$ size *.o *.so text data bss dec hex filename 2850 0 0 2850 b22 disco_asymmetric.o 1556 0 0 1556 614 disco_symmetric.o 217 4 0 221 dd randombytes.o 1899 0 0 1899 76b tweetstrobe.o 1976 0 0 1976 7b8 tweetX25519.o 12068 676 4 12748 31cc disco.so
I think this all look pretty good. Although I'm not sure yet what is considered "good".
$ ls -l | grep "[\.o]$" -rw-r--r-- 1 vagrant vagrant 5816 Dec 2 20:41 disco_asymmetric.o -rwxr-xr-x 1 vagrant vagrant 22088 Dec 2 20:41 disco.so -rw-r--r-- 1 vagrant vagrant 4768 Dec 2 20:41 disco_symmetric.o -rw-r--r-- 1 vagrant vagrant 1920 Dec 2 20:41 randombytes.o -rw-r--r-- 1 vagrant vagrant 4048 Dec 2 20:41 tweetstrobe.o -rw-r--r-- 1 vagrant vagrant 4016 Dec 2 20:41 tweetX25519.o
The size of disco.so is weirdly big compared to what I got with the size tool.
disco.so
size
The text was updated successfully, but these errors were encountered:
No branches or pull requests
After compiling with
-Os -DNDEBUG
(-Os
optimizes for size,-DNDEBUG
removes asserts):So under 1000 LOC. That's pretty good :)
I think this all look pretty good. Although I'm not sure yet what is considered "good".
The size of
disco.so
is weirdly big compared to what I got with thesize
tool.The text was updated successfully, but these errors were encountered: