Implementation notes: amd64, hertz, crypto_hash/cheetah256

Computer: hertz
Microarchitecture: amd64; Zen 4 (a60f12)
Architecture: amd64
CPU ID: AuthenticAMD-00a60f12-178bfbff
SUPERCOP version: 20240716
Operation: crypto_hash
Primitive: cheetah256

Compiler output


Cheetah.c: Cheetah.c:192:8: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:   192 |         int i,j;
Cheetah.c:       |               ^
Cheetah.c: Cheetah.c:220:4: error: call to undeclared function 'Cheetah25664'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Cheetah.c:   220 |                         Cheetah25664(&Te0,&T640,&state->core, data, totLength);
Cheetah.c:       |                         ^
Cheetah.c: Cheetah.c:232:4: error: call to undeclared function 'Cheetah51264'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
Cheetah.c:   232 |                         Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
Cheetah.c:       |                         ^
Cheetah.c: Cheetah.c:255:8: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:   255 |         int i,j;
Cheetah.c:       |               ^
Cheetah.c: 2 warnings and 2 errors generated.

Number of similar (implementation,compiler) pairs: 6, namely:
ImplementationCompiler
T:asmclang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:asmclang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:asmclang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:asm64clang -march=native -O2 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:asm64clang -march=native -O3 -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))
T:asm64clang -march=native -Os -fwrapv -Qunused-arguments -fPIC -fPIE -gdwarf-4 -Wall (Ubuntu_Clang_18.1.3_(1ubuntu1))

Compiler output


Cheetah.c: Cheetah.c: In function 'Init':
Cheetah.c: Cheetah.c:192:15: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:   192 |         int i,j;
Cheetah.c:       |               ^
Cheetah.c: Cheetah.c: In function 'Update':
Cheetah.c: Cheetah.c:220:25: warning: implicit declaration of function 'Cheetah25664' [-Wimplicit-function-declaration]
Cheetah.c:   220 |                         Cheetah25664(&Te0,&T640,&state->core, data, totLength);
Cheetah.c:       |                         ^~~~~~~~~~~~
Cheetah.c: Cheetah.c:232:25: warning: implicit declaration of function 'Cheetah51264' [-Wimplicit-function-declaration]
Cheetah.c:   232 |                         Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
Cheetah.c:       |                         ^~~~~~~~~~~~
Cheetah.c: Cheetah.c: In function 'Final':
Cheetah.c: Cheetah.c:255:15: warning: unused variable 'j' [-Wunused-variable]
Cheetah.c:   255 |         int i,j;
Cheetah.c:       |               ^
hash.c: In file included from hash.c:2:
hash.c: Cheetah.c: In function 'Init':
hash.c: Cheetah.c:192:15: warning: unused variable 'j' [-Wunused-variable]
hash.c:   192 |         int i,j;
hash.c:       |               ^
hash.c: Cheetah.c: In function 'Update':
hash.c: Cheetah.c:220:25: warning: implicit declaration of function 'Cheetah25664' [-Wimplicit-function-declaration]
hash.c:   220 |                         Cheetah25664(&Te0,&T640,&state->core, data, totLength);
hash.c:       |                         ^~~~~~~~~~~~
hash.c: Cheetah.c:232:25: warning: implicit declaration of function 'Cheetah51264' [-Wimplicit-function-declaration]
hash.c:   232 |                         Cheetah51264(&Te0,&T640,&state->core64, data, totLength);
hash.c:       |                         ^~~~~~~~~~~~
hash.c: Cheetah.c: In function 'Final':
hash.c: Cheetah.c:255:15: warning: unused variable 'j' [-Wunused-variable]
hash.c:   255 |         int i,j;
hash.c:       |               ^
Cheetah512-64.s: Cheetah512-64.s: Assembler messages:
Cheetah512-64.s: Cheetah512-64.s:4992: Warning: zero assumed for missing expression
try.c: /usr/bin/ld: libcrypto_hash_cheetah256.a(Cheetah256-64.o): relocation R_X86_64_32S against `.data' can not be used when making a PIE object; recompile with -fPIE
try.c: /usr/bin/ld: failed to set dynamic section sizes: bad value
try.c: collect2: error: ld returned 1 exit status

Number of similar (implementation,compiler) pairs: 6, namely:
ImplementationCompiler
T:asmgcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:asmgcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:asmgcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:asm64gcc -march=native -mtune=native -O2 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:asm64gcc -march=native -mtune=native -O3 -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)
T:asm64gcc -march=native -mtune=native -Os -fwrapv -fPIC -fPIE -gdwarf-4 -Wall (13.2.0)