On 08/12/2022 08.23, Dr. Werner Fink wrote:
[...] AFAICR the ffmpeg/kodi people are able to build and load on demand optimized code for e.g. sse4 support. Also glibc/gcc has the opportunity to load/map optimized code at runtime for different CPUs all x86_64, at least I can remember on debugging a strange crash on an older AMD CPU within string operations which was not reproducable on Intel.
glibc uses hand-optimized assembler files for certain string routines and has a handler that checks for cpu capabilities and then calls these routines as needed. I expect ffmpeg to do something similar. So, there's extra logic needed to do this in a single binary. Just compiling a library with certain flags and moving it into the proper subdirectory is a far easier approach. Andreas -- Andreas Jaeger aj@suse.com Twitter: jaegerandi SUSE Software Solutions Germany GmbH, Frankenstr.146, D 90461 Nürnberg (HRB 36809, AG Nürnberg) GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman GPG fingerprint = EF18 1673 38C4 A372 86B1 E699 5294 24A3 FF91 2ACB