Implementation notes: amd64, hertz, crypto_aead/juliusv1draft

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240107
Operation: crypto_aead
Primitive: juliusv1draft

Compiler output

Implementation: T:ref
Security model: timingleaks
Compiler: clang-17 -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE
aes.c: aes.c:530:10: error: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
aes.c: 530 | printf("%02x",state[idx2][idx]);
aes.c: | ^
aes.c: aes.c:530:10: note: include the header <stdio.h> or explicitly provide a declaration for 'printf'
aes.c: aes.c:531:4: error: call to undeclared function 'puts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
aes.c: 531 | puts("");
aes.c: | ^
aes.c: aes.c:539:21: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat]
aes.c: 539 | printf("%08x",key[idx]);
aes.c: | ~~~~ ^~~~~~~~
aes.c: | %08lx
aes.c: aes.c:540:4: error: call to undeclared function 'puts'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
aes.c: 540 | puts("");
aes.c: | ^
aes.c: 1 warning and 3 errors generated.

Number of similar (compiler,implementation) pairs: 3, namely:
CompilerImplementations
clang-17 -march=native -O2 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang-17 -march=native -O3 -fomit-frame-pointer -fwrapv -Qunused-arguments -fPIC -fPIE T:ref
clang-17 -march=native -Os -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
aes.c: aes.c: In function 'printstate':
aes.c: aes.c:530:10: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
aes.c: 530 | printf("%02x",state[idx2][idx]);
aes.c: | ^~~~~~
aes.c: aes.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
aes.c: +++ |+#include <stdio.h>
aes.c: 1 |
aes.c: aes.c:530:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
aes.c: 530 | printf("%02x",state[idx2][idx]);
aes.c: | ^~~~~~
aes.c: aes.c:530:10: note: include '<stdio.h>' or provide a declaration of 'printf'
aes.c: aes.c:531:4: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
aes.c: 531 | puts("");
aes.c: | ^~~~
aes.c: aes.c:531:4: note: include '<stdio.h>' or provide a declaration of 'puts'
aes.c: aes.c: In function 'print_rnd_key':
aes.c: aes.c:539:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
aes.c: 539 | printf("%08x",key[idx]);
aes.c: | ^~~~~~
aes.c: aes.c:539:7: note: include '<stdio.h>' or provide a declaration of 'printf'
aes.c: aes.c:539:18: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=]
aes.c: 539 | printf("%08x",key[idx]);
aes.c: | ~~~^ ~~~~~~~~
aes.c: | | |
aes.c: | | long unsigned int
aes.c: ...
encrypt.c: In file included from encrypt.c:10:
encrypt.c: functions.c:2:10: fatal error: AES/aes.c: No such file or directory
encrypt.c: 2 | #include "AES/aes.c"
encrypt.c: | ^~~~~~~~~~~
encrypt.c: compilation terminated.

Number of similar (compiler,implementation) pairs: 3, 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 -Os -fomit-frame-pointer -fwrapv -fPIC -fPIE T:ref