Implementation notes: amd64, temp, crypto_kem/sikep503

Computer: temp
Architecture: amd64
CPU ID: AuthenticAMD-00800f12-178bfbff
SUPERCOP version: 20191017
Operation: crypto_kem
Primitive: sikep503
TimeObject sizeTest sizeImplementationCompilerBenchmark dateSUPERCOP version
3623131259832 0 082366 800 1640msgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
3689319328185 0 048022 800 1576msgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
3709456960023 0 082558 800 1640x64gcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
3765012024608 0 042666 784 1576msgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
3831249727804 0 047198 800 1576msgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
3927709327789 0 047182 800 1576x64gcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
3984392824603 0 042666 784 1576x64gcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
4028409728216 0 048054 800 1576x64gcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
26019722958050 0 080590 800 1640optgcc_-march=native_-mtune=native_-O3_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
31012071427017 0 046862 800 1576optgcc_-march=native_-mtune=native_-O2_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
32343685726356 0 045782 800 1576optgcc_-march=native_-mtune=native_-O_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017
52935079223144 0 041226 784 1576optgcc_-march=native_-mtune=native_-Os_-fomit-frame-pointer_-fwrapv_-fPIC_-fPIE2019122220191017

Compiler output

Implementation: ms
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
P503.c: In file included from P503.c:121:0:
P503.c: ec_isogeny.inc: In function 'xDBL':
P503.c: ec_isogeny.inc:16:5: warning: passing argument 1 of 'fp2sqr503_mont' from incompatible pointer type [enabled by default]
P503.c: fp2sqr_mont(t0, t0); // t0 = (X1-Z1)^2
P503.c: ^
P503.c: P503.c:106:39: note: expected 'const digit_t (*)[8]' but argument is of type 'digit_t (*)[8]'
P503.c: #define fp2sqr_mont fp2sqr503_mont
P503.c: ^
P503.c: fpx.inc:149:6: note: in expansion of macro 'fp2sqr_mont'
P503.c: void fp2sqr_mont(const f2elm_t a, f2elm_t c)
P503.c: ...
P503.c: void j_inv(const f2elm_t A, const f2elm_t C, f2elm_t jinv)
P503.c: ^
P503.c: In file included from P503.c:122:0:
P503.c: sidh.inc:330:5: warning: passing argument 1 of 'fp2_encode' from incompatible pointer type [enabled by default]
P503.c: fp2_encode(jinv, SharedSecretB); // Format shared secret
P503.c: ^
P503.c: In file included from P503.c:122:0:
P503.c: sidh.inc:34:13: note: expected 'const digit_t (*)[8]' but argument is of type 'digit_t (*)[8]'
P503.c: static void fp2_encode(const f2elm_t x, unsigned char *enc)
P503.c: ^

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

Compiler output

Implementation: opt
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
P503.c: In file included from P503.c:114:0:
P503.c: ec_isogeny.inc: In function 'xDBL':
P503.c: ec_isogeny.inc:18:5: warning: passing argument 1 of 'fp2sqr503_mont' from incompatible pointer type [enabled by default]
P503.c: fp2sqr_mont(t0, t0); // t0 = (X1-Z1)^2
P503.c: ^
P503.c: P503.c:105:33: note: expected 'const digit_t (*)[8]' but argument is of type 'digit_t (*)[8]'
P503.c: #define fp2sqr_mont fp2sqr503_mont
P503.c: ^
P503.c: fpx.inc:151:6: note: in expansion of macro 'fp2sqr_mont'
P503.c: void fp2sqr_mont(const f2elm_t a, f2elm_t c)
P503.c: ...
P503.c: void j_inv(const f2elm_t A, const f2elm_t C, f2elm_t jinv)
P503.c: ^
P503.c: In file included from P503.c:115:0:
P503.c: sidh.inc:331:5: warning: passing argument 1 of 'fp2_encode' from incompatible pointer type [enabled by default]
P503.c: fp2_encode(jinv, SharedSecretB); // Format shared secret
P503.c: ^
P503.c: In file included from P503.c:115:0:
P503.c: sidh.inc:35:13: note: expected 'const digit_t (*)[8]' but argument is of type 'digit_t (*)[8]'
P503.c: static void fp2_encode(const f2elm_t x, unsigned char *enc)
P503.c: ^

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

Compiler output

Implementation: ref
Security model: unknown
Compiler: gcc -march=native -mtune=native -O2 -fomit-frame-pointer -fwrapv -fPIC -fPIE
isogeny.c: isogeny.c: In function 'iso_2_e':
isogeny.c: isogeny.c:241:3: error: 'for' loop initial declarations are only allowed in C99 mode
isogeny.c: for (int i = e - 2; i >= 0; i -= 2) {
isogeny.c: ^
isogeny.c: isogeny.c:241:3: note: use option -std=c99 or -std=gnu99 to compile your code
isogeny.c: isogeny.c: In function 'iso_3_e':
isogeny.c: isogeny.c:276:3: error: 'for' loop initial declarations are only allowed in C99 mode
isogeny.c: for (int i = e - 1; i >= 0; --i) {
isogeny.c: ^

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