@@ -0,0 +1,1263 @@
+#!/usr/bin/env python3%0A%0Aimport sys%0A%0Afrom pathlib import Path%0Afrom procedures import PROCEDURES%0A%0Astd_options = %7B%0A    'avx2': '-O3 -mavx2 -S %25(cpp_file)s -o %25(asm_file)s',%0A    'avx512': '-O3 -mavx512f -mavx512dq -mavx512bw -mavx512vbmi -mavx512vbmi2 -mavx512vl '%0A              '-S %25(cpp_file)s -o %25(asm_file)s',%0A%7D%0A%0Acompiler_options = %7B%0A    'gcc':  std_options,%0A    'clang': std_options,%0A        %0A%7D%0A%0Adef main():%0A    if len(sys.argv) %3C 2:%0A        print(%22Usage: script compile-command target%22)%0A        print()%0A        print(%22compiler-command tells how to invoke script (like 'gcc' or 'clang')%22)%0A        print(%22target is avx2 or avx512%22)%0A        return 1%0A%0A    arg_compiler = sys.argv%5B1%5D%0A    arg_target = sys.argv%5B2%5D%0A%0A    options = None%0A    for compiler in compiler_options:%0A        if compiler in arg_compiler:%0A            options = compiler_options%5Bcompiler%5D%5Barg_target%5D%0A%0A    if options is None:%0A        print(f%22%7Barg_compiler%7D not recognized%22)%0A        return 1%0A%0A    for cpp_file in PROCEDURES:%0A        asm_file = Path(cpp_file).stem + '_' + arg_target + '.s'%0A        opts = options %25 %7B'cpp_file': cpp_file,%0A                          'asm_file': asm_file%7D%0A%0A        print(f%22%7Barg_compiler%7D %7Bopts%7D%22)%0A%0A    return 0%0A        %0A%0Aif __name__ == '__main__':%0A    sys.exit(main())%0A

Add a helper script