Implementation notes: amd64, comet, crypto_sign/edons128k08n72nu8l4mu3

Computer: comet
Microarchitecture: amd64; Comet Lake (806ec)
Architecture: amd64
CPU ID: GenuineIntel-000806ec-bfebfbff
SUPERCOP version: 20240107
Operation: crypto_sign
Primitive: edons128k08n72nu8l4mu3
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
192688428220 0 89666781 1188 2656T:refclang_-march=native_-O2_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010820231222
197966830673 0 89667540 1124 2688T:refgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010820231222
208238546184 0 89683645 1188 2656T:refclang_-mcpu=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010820231222
221576522880 0 89658635 1132 2688T:refgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010820231222
226556147000 0 89685869 1188 2688T:refclang_-march=native_-O3_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010820231222
236279122671 0 89658067 1132 2688T:refgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010820231222
248222719980 0 89655421 1188 2656T:refclang_-march=native_-O_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010820231222
290874316215 0 89650675 1124 2688T:refgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2024010820231222
397642918875 0 89655123 1180 2688T:refclang_-march=native_-Os_-fomit-frame-pointer_-fwrapv_-Qunused-arguments_-fPIC_-fPIE2024010820231222

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
mpfq_2_128.c: mpfq_2_128.c:154:35: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
mpfq_2_128.c: int ret = mpn_set_str(zz, tmp, len, k->io_type);
mpfq_2_128.c: ^~~
mpfq_2_128.c: /home/supercop/supercop-20231222/supercop-data/comet/amd64/include/gmp.h:1595:68: note: passing argument to parameter here
mpfq_2_128.c: __GMP_DECLSPEC mp_size_t mpn_set_str (mp_ptr, const unsigned char *, size_t, int);
mpfq_2_128.c: ^
mpfq_2_128.c: 1 warning generated.
sign.c: sign.c:815:63: warning: incompatible function pointer types passing 'int (const unsigned long *, const unsigned long *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Wincompatible-function-pointer-types]
sign.c: qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: ^~~~~~~
sign.c: /usr/include/stdlib.h:852:20: note: passing argument to parameter '__compar' here
sign.c: __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: ^
sign.c: sign.c:566:83: warning: for loop has empty body [-Wempty-body]
sign.c: for(i=0; i<(1<<(mu + 1 + ErrorBasisDimension))+2; i++) Kinit(allcandidates[i]);
sign.c: ^
sign.c: sign.c:566:83: note: put the semicolon on a separate line to silence this warning
sign.c: sign.c:880:84: warning: for loop has empty body [-Wempty-body]
sign.c: for(i=0; i<(1<<(mu + 1 + ErrorBasisDimension))+2; i++) Kclear(allcandidates[i]);
sign.c: ^
sign.c: sign.c:880:84: note: put the semicolon on a separate line to silence this warning
sign.c: sign.c:975:63: warning: incompatible function pointer types passing 'int (const unsigned long *, const unsigned long *)' to parameter of type '__compar_fn_t' (aka 'int (*)(const void *, const void *)') [-Wincompatible-function-pointer-types]
sign.c: qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: ^~~~~~~
sign.c: /usr/include/stdlib.h:852:20: note: passing argument to parameter '__compar' here
sign.c: __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: ^
sign.c: sign.c:934:83: warning: for loop has empty body [-Wempty-body]
sign.c: for(i=0; i<(1<<(mu + 1 + ErrorBasisDimension))+2; i++) Kinit(allcandidates[i]);
sign.c: ^
sign.c: sign.c:934:83: note: put the semicolon on a separate line to silence this warning
sign.c: 5 warnings generated.
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

Number of similar (compiler,implementation) pairs: 5, namely:
CompilerImplementations
clang -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -O -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -march=native -Os -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang -mcpu=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
sign.c: sign.c: In function 'crypto_sign_edons128k08n72nu8l4mu3_ref_timingleaks':
sign.c: sign.c:815:63: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
sign.c: 815 | qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: | ^~~~~~~
sign.c: | |
sign.c: | int (*)(const long unsigned int *, const long unsigned int *)
sign.c: In file included from sign.c:2:
sign.c: /usr/include/stdlib.h:852:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const long unsigned int *, const long unsigned int *)'
sign.c: 852 | __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: | ~~~~~~~~~~~~~~^~~~~~~~
sign.c: sign.c: In function 'crypto_sign_edons128k08n72nu8l4mu3_ref_timingleaks_open':
sign.c: sign.c:975:63: warning: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types]
sign.c: 975 | qsort(allcandidates, NumberOfAllCandidates, sizeof(Kelt), compare);
sign.c: | ^~~~~~~
sign.c: | |
sign.c: | int (*)(const long unsigned int *, const long unsigned int *)
sign.c: /usr/include/stdlib.h:852:34: note: expected '__compar_fn_t' {aka 'int (*)(const void *, const void *)'} but argument is of type 'int (*)(const long unsigned int *, const long unsigned int *)'
sign.c: 852 | __compar_fn_t __compar) __nonnull ((1, 4));
sign.c: | ~~~~~~~~~~~~~~^~~~~~~~
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
try.c: /usr/bin/ld: warning: crypto_stream_chacha20_moon_avx2_64_constbranchindex-chacha.o: missing .note.GNU-stack section implies executable stack
try.c: /usr/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

Number of similar (compiler,implementation) pairs: 4, namely:
CompilerImplementations
gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O3 -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -O -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref
gcc -march=native -mtune=native -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref