[kaze@kaze Kanshiketsu_AES_sourcecode]$ ls -l
total 12901
-rwxrwxrwx. 2 kaze kaze     223 Aug  3 22:36 Compile_Sandokan_Intel_32.bat
-rwxrwxrwx. 2 kaze kaze     318 Aug  3 15:33 Kaidanjify_DD-128AES_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze     354 Aug  3 15:33 Kaidanjify-Kanshiketsu_DD-128AES_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze     324 Aug  3 15:33 Kaidanjify-Kanshiketsu_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze   65925 Aug  4 23:15 log_Renoir_AES.txt
-rwxrwxrwx. 2 kaze kaze   71964 Aug  3 15:33 LZSS-master.zip
-rwxrwxrwx. 2 kaze kaze    4787 Aug  5 00:28 _MakeELF_Nakamichi_GCC.sh
-rwxrwxrwx. 2 kaze kaze    3367 Aug  5  2021 _MakeEXE_Nakamichi_GCC.bat
-rwxrwxrwx. 2 kaze kaze    5710 Aug  3 15:33 _MakeEXE_Nakamichi_ICL.bat
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:25 Nakamichi_DD-192.elf
-rwxrwxrwx. 1 kaze kaze  142336 Aug  5 00:25 Nakamichi_DD-192.exe
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:25 Nakamichi_PRV-192.elf
-rwxrwxrwx. 1 kaze kaze  143360 Aug  5 00:25 Nakamichi_PRV-192.exe
-rwxrwxrwx. 2 kaze kaze 2195980 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.c
-rwxrwxrwx. 2 kaze kaze 5444130 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.cod
-rwxrwxrwx. 2 kaze kaze  377232 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.obj
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:25 Nakamichi_SHA3-192.elf
-rwxrwxrwx. 1 kaze kaze  142336 Aug  5 00:25 Nakamichi_SHA3-192.exe
-rwxrwxrwx. 1 kaze kaze  142336 Aug  5 00:25 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  203776 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_ICC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  203776 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_DD-192CRC_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze  136192 Aug  5 00:25 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  201728 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_ICC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  205824 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_DD-128AES_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze  138240 Aug  5 00:25 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  204288 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze    5581 Aug  3 15:33 NIST.txt
drwxrwxrwx. 1 kaze kaze    4096 Aug  5  2021 Pippip
-rwxrwxrwx. 2 kaze kaze    3485 Aug  3 15:33 prvhash42.h
-rwxrwxrwx. 2 kaze kaze      42 Aug  3 22:38 QuickSortExternal_4+GB.distinct.txt
-rwxrwxrwx. 2 kaze kaze      20 Aug  3 22:38 QuickSortExternal_4+GB.txt
-rwxrwxrwx. 2 kaze kaze  118784 Aug  3 22:36 Sandokan_QuickSortExternal_4+GB_32bit_Intel.exe
-rwxrwxrwx. 2 kaze kaze  170813 Aug 21  2018 Sandokan_QuickSortExternal_4+GB.c
-rwxrwxrwx. 2 kaze kaze   61680 Aug  3 22:36 Sandokan_QuickSortExternal_4+GB.obj
-rwxrwxrwx. 2 kaze kaze  120832 Aug  3 22:36 Sandokan_QuickSortExternal_Deduplicated_4+GB_32bit_Intel.exe
-rwxrwxrwx. 1 kaze kaze   49152 Aug  3 15:33 sha1sum.exe
-rwxrwxrwx. 1 kaze kaze     208 Jun  2  2018 Sort_to.bat
-rwxrwxrwx. 2 kaze kaze     132 Aug  3 15:33 SWAP_watch.sh
-rwxrwxrwx. 1 kaze kaze      20 Aug  3 22:36 test
-rwxrwxrwx. 1 kaze kaze    6144 Aug  3 15:33 timer64.exe
[kaze@kaze Kanshiketsu_AES_sourcecode]$ sh _MakeELF_Nakamichi_GCC.sh 
strip: Nakamichi_DD-192.elf[.gnu.build.attributes__libc_freeres_fn]: Warning: version note missing - assuming version 3
strip: Nakamichi_PRV-192.elf[.gnu.build.attributes__libc_freeres_fn]: Warning: version note missing - assuming version 3
strip: Nakamichi_SHA3-192.elf[.gnu.build.attributes__libc_freeres_fn]: Warning: version note missing - assuming version 3
strip: Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.elf[.gnu.build.attributes__libc_freeres_fn]: Warning: version note missing - assuming version 3
strip: Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_GCC_64bit.elf[.gnu.build.attributes__libc_freeres_fn]: Warning: version note missing - assuming version 3
strip: Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf[.gnu.build.attributes__libc_freeres_fn]: Warning: version note missing - assuming version 3
[kaze@kaze Kanshiketsu_AES_sourcecode]$ ls -l
total 15409
-rwxrwxrwx. 2 kaze kaze     223 Aug  3 22:36 Compile_Sandokan_Intel_32.bat
-rwxrwxrwx. 2 kaze kaze     318 Aug  3 15:33 Kaidanjify_DD-128AES_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze     354 Aug  3 15:33 Kaidanjify-Kanshiketsu_DD-128AES_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze     324 Aug  3 15:33 Kaidanjify-Kanshiketsu_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze   65925 Aug  4 23:15 log_Renoir_AES.txt
-rwxrwxrwx. 2 kaze kaze   71964 Aug  3 15:33 LZSS-master.zip
-rwxrwxrwx. 2 kaze kaze    4787 Aug  5 00:28 _MakeELF_Nakamichi_GCC.sh
-rwxrwxrwx. 2 kaze kaze    3367 Aug  5  2021 _MakeEXE_Nakamichi_GCC.bat
-rwxrwxrwx. 2 kaze kaze    5710 Aug  3 15:33 _MakeEXE_Nakamichi_ICL.bat
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:29 Nakamichi_DD-192.elf
-rwxrwxrwx. 1 kaze kaze  142336 Aug  5 00:29 Nakamichi_DD-192.exe
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:29 Nakamichi_PRV-192.elf
-rwxrwxrwx. 1 kaze kaze  143360 Aug  5 00:29 Nakamichi_PRV-192.exe
-rwxrwxrwx. 2 kaze kaze 2195980 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.c
-rwxrwxrwx. 2 kaze kaze 5444130 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.cod
-rwxrwxrwx. 2 kaze kaze  377232 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.obj
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:29 Nakamichi_SHA3-192.elf
-rwxrwxrwx. 1 kaze kaze  142336 Aug  5 00:29 Nakamichi_SHA3-192.exe
-rwxrwxrwx. 1 kaze kaze  857952 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf
-rwxrwxrwx. 1 kaze kaze  142336 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  203776 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_ICC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  203776 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_DD-192CRC_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze  849760 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.elf
-rwxrwxrwx. 1 kaze kaze  136192 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  201728 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_ICC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  205824 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_DD-128AES_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze  853856 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_GCC_64bit.elf
-rwxrwxrwx. 1 kaze kaze  138240 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze  204288 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze    5581 Aug  3 15:33 NIST.txt
drwxrwxrwx. 1 kaze kaze    4096 Aug  5  2021 Pippip
-rwxrwxrwx. 2 kaze kaze    3485 Aug  3 15:33 prvhash42.h
-rwxrwxrwx. 2 kaze kaze      42 Aug  3 22:38 QuickSortExternal_4+GB.distinct.txt
-rwxrwxrwx. 2 kaze kaze      20 Aug  3 22:38 QuickSortExternal_4+GB.txt
-rwxrwxrwx. 2 kaze kaze  118784 Aug  3 22:36 Sandokan_QuickSortExternal_4+GB_32bit_Intel.exe
-rwxrwxrwx. 2 kaze kaze  170813 Aug 21  2018 Sandokan_QuickSortExternal_4+GB.c
-rwxrwxrwx. 2 kaze kaze   61680 Aug  3 22:36 Sandokan_QuickSortExternal_4+GB.obj
-rwxrwxrwx. 2 kaze kaze  120832 Aug  3 22:36 Sandokan_QuickSortExternal_Deduplicated_4+GB_32bit_Intel.exe
-rwxrwxrwx. 1 kaze kaze   49152 Aug  3 15:33 sha1sum.exe
-rwxrwxrwx. 1 kaze kaze     208 Jun  2  2018 Sort_to.bat
-rwxrwxrwx. 2 kaze kaze     132 Aug  3 15:33 SWAP_watch.sh
-rwxrwxrwx. 1 kaze kaze      20 Aug  3 22:36 test
-rwxrwxrwx. 1 kaze kaze    6144 Aug  3 15:33 timer64.exe
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx 
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

Usage: upx [-123456789dlthVL] [-qvfk] [-o file] file..

Commands:
  -1     compress faster                   -9    compress better
  -d     decompress                        -l    list compressed file
  -t     test compressed file              -V    display version number
  -h     give more help                    -L    display software license
Options:
  -q     be quiet                          -v    be verbose
  -oFILE write output to 'FILE'
  -f     force compression of suspicious files
  -k     keep backup files
file..   executables to (de)compress

Type 'upx --help' for more detailed help.

UPX comes with ABSOLUTELY NO WARRANTY; for details visit https://upx.github.io
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx -9 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_
Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf  Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe  Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_ICC_64bit.exe
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx -9 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    142336 ->     57856   40.65%    win64/pe     Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe

Packed 1 file.
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx -9 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    857952 ->    338296   39.43%   linux/amd64   Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf

Packed 1 file.
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx -9 Nakamichi_Vanilla_LITE_Kaidanji_
Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf  Nakamichi_Vanilla_LITE_Kaidanji_DD-192CRC_ICC_64bit.exe  Nakamichi_Vanilla_LITE_Kaidanji_ICC_64bit.exe
Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe  Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.elf            
Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_ICC_64bit.exe  Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.exe            
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx -9 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.exe
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    136192 ->     54272   39.85%    win64/pe     Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.exe

Packed 1 file.
[kaze@kaze Kanshiketsu_AES_sourcecode]$ upx -9 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.elf
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
    849760 ->    334376   39.35%   linux/amd64   Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.elf

Packed 1 file.
[kaze@kaze Kanshiketsu_AES_sourcecode]$ ls -l
total 307209
-rwxrwxrwx. 2 kaze kaze       223 Aug  3 22:36 Compile_Sandokan_Intel_32.bat
-rwxrwxrwx. 2 kaze kaze       318 Aug  3 15:33 Kaidanjify_DD-128AES_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze       354 Aug  3 15:33 Kaidanjify-Kanshiketsu_DD-128AES_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze       324 Aug  3 15:33 Kaidanjify-Kanshiketsu_internal-64GB.bat
-rwxrwxrwx. 2 kaze kaze     65925 Aug  4 23:15 log_Renoir_AES.txt
-rwxrwxrwx. 2 kaze kaze     71964 Aug  3 15:33 LZSS-master.zip
-rwxrwxrwx. 2 kaze kaze      4787 Aug  5 00:28 _MakeELF_Nakamichi_GCC.sh
-rwxrwxrwx. 2 kaze kaze      3367 Aug  5  2021 _MakeEXE_Nakamichi_GCC.bat
-rwxrwxrwx. 2 kaze kaze      5710 Aug  3 15:33 _MakeEXE_Nakamichi_ICL.bat
-rwxrwxrwx. 1 kaze kaze    857952 Aug  5 00:29 Nakamichi_DD-192.elf
-rwxrwxrwx. 1 kaze kaze    142336 Aug  5 00:29 Nakamichi_DD-192.exe
-rwxrwxrwx. 1 kaze kaze    857952 Aug  5 00:29 Nakamichi_PRV-192.elf
-rwxrwxrwx. 1 kaze kaze    143360 Aug  5 00:29 Nakamichi_PRV-192.exe
-rwxrwxrwx. 2 kaze kaze   2195980 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.c
-rwxrwxrwx. 2 kaze kaze   5444130 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.cod
-rwxrwxrwx. 2 kaze kaze    377232 Aug  5  2021 Nakamichi_Ryuugan-ditto-1TB_btree.obj
-rwxrwxrwx. 1 kaze kaze    857952 Aug  5 00:29 Nakamichi_SHA3-192.elf
-rwxrwxrwx. 1 kaze kaze    142336 Aug  5 00:29 Nakamichi_SHA3-192.exe
-rwxrwxrwx. 1 kaze kaze    338296 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf
-rwxrwxrwx. 1 kaze kaze     57856 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze    203776 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_ICC_64bit.exe
-rwxrwxrwx. 2 kaze kaze    203776 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_DD-192CRC_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze    334376 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.elf
-rwxrwxrwx. 1 kaze kaze     54272 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze    201728 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji_ICC_64bit.exe
-rwxrwxrwx. 2 kaze kaze    205824 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_DD-128AES_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze    853856 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_GCC_64bit.elf
-rwxrwxrwx. 1 kaze kaze    138240 Aug  5 00:29 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_GCC_64bit.exe
-rwxrwxrwx. 2 kaze kaze    204288 Aug  5  2021 Nakamichi_Vanilla_LITE_Kaidanji-Kanshiketsu_ICC_64bit.exe
-rwxrwxrwx. 1 kaze kaze      5581 Aug  3 15:33 NIST.txt
drwxrwxrwx. 1 kaze kaze      4096 Aug  5  2021 Pippip
-rwxrwxrwx. 2 kaze kaze      3485 Aug  3 15:33 prvhash42.h
-rwxrwxrwx. 2 kaze kaze        42 Aug  3 22:38 QuickSortExternal_4+GB.distinct.txt
-rwxrwxrwx. 2 kaze kaze        20 Aug  3 22:38 QuickSortExternal_4+GB.txt
-rwxrwxrwx. 2 kaze kaze    118784 Aug  3 22:36 Sandokan_QuickSortExternal_4+GB_32bit_Intel.exe
-rwxrwxrwx. 2 kaze kaze    170813 Aug 21  2018 Sandokan_QuickSortExternal_4+GB.c
-rwxrwxrwx. 2 kaze kaze     61680 Aug  3 22:36 Sandokan_QuickSortExternal_4+GB.obj
-rwxrwxrwx. 2 kaze kaze    120832 Aug  3 22:36 Sandokan_QuickSortExternal_Deduplicated_4+GB_32bit_Intel.exe
-rwxrwxrwx. 1 kaze kaze     49152 Aug  3 15:33 sha1sum.exe
-rwxrwxrwx. 1 kaze kaze       208 Jun  2  2018 Sort_to.bat
-rwxrwxrwx. 2 kaze kaze       132 Aug  3 15:33 SWAP_watch.sh
-rwxrwxrwx. 1 kaze kaze        20 Aug  3 22:36 test
-rwxrwxrwx. 1 kaze kaze 300000000 Jun  8 10:43 test1_demo
-rwxrwxrwx. 1 kaze kaze      6144 Aug  3 15:33 timer64.exe
[kaze@kaze Kanshiketsu_AES_sourcecode]$ time ./Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf test1_demo 300.Nakamichi 24 25000 i
                                                                                                                                                                 
                                                            SMMi                                                                               :MM2              
                                                           0MMMMM:                                                                            rMMMMMa            
                                                          ZMMM. 0Z                                                                           :MMM7 7B            
                                                         rMM@                                                                                MMM                 
         7                                               MMM                                                                                MMM.                 
       BMMMa XZ               :MM:                      MMM                                                                                XMMX                  
     XMSANMAYCE;             rMMMM                     rMM;                                                                                MM@                   
    WM0  2MMMMM             ZMMMM                      MMW                                                                                BMM                    
    :      MMMB           aMMMMW                      2MM                                                           :MM8                  MM7               8MMi 
            MMMZ           XMMM                       MMa                                                         .WMMM0                 @MM              rMMMMi 
            MMMMa           MM,                      aMM                                                          XMMB                   MM:              MMM2   
           @MXMMM7         0MM                       MMS                                                                                WMM                      
           MM  MMM,        MM7                      7MM                                                                                 MM:                      
          MMX  ;MMM       iMM         MMM8  .       MM8     MMS         MMMZ  .     iMBi    :MMMX      @MMa      WB:       XMMZ2aX     ZMM     MMM2     :M2      
         :MM    ZMMM      BM8       ;MMMMMaaMM     ,MM    XMM@MM      rMMMMM2aMM   XMMMM   SMMSMM.    MMXMMM    MMMM0     aMMMa@MMr    MMS   ;MM;MM8   XMMMM.    
         MMr     MMM0     MM       2MMW    MMM     0MM   ZMS 2MM.    aMMB    MMM  BM aMM  8Ma  MM   iMM  BMM   M7 MMZ    ;MMX   MMi   ;MM   ZMW  MM0  rM 7MM     
        ;MM       MMM7   iMM      ZMM2    0MMa     MMX  8M:  MMM    ZMMS    BMM2  7  MM8 ZMr  :MM  rMB   MM@     iMM     MMZ   iMM    WMW  BM2   MMX     @MM     
        MMi       ;MMM   0MS     2MM7    aMMM     ;MM .8Mi  MMM    aMM7    ZMMM      MM ;Mr   XMM iM8    MMa     0MM    BMM    MMM    MM: BMX   .MM      MM7     
       aMM         BMMM  MM     ;MMX    ZMMMZ     BM@ MMM    .    rMM7    ZMMMZ     :MM:MX    0MZ M8    XMM,     MMX    MM.    ;W:   rMM aMX    ZMM     7MM      
       MM           MMMi MM     MMZ    8M:MM      MM; MMM,        MMa    0M:MM      8MWM8     MMZM0     MMM     rMM    0MM           WMa,M2     MMS     MM8      
      @M0           :MMMXMa    MMM    WM XMB ;   :MM;M8MMM       MMM    @M XM0 ;    MMM@      MMMW      MMrZi   MMS    MMi           MMZM0     rMM Mi   MM :     
     ;MM             BMMMM:   rMM    MM  MMSMa   ZMMM@ iMMr     7MM    MM  MMXM2   :MMM      ZMMM      8MM@@    MMZ0  7MM       ,   :MMMM      MMBMa   0MWBr     
    ,MMMM             MMMM    MMS   MM   MMMZ    MMMM   MMM     MMS  .MM   MMMZ    @MM.      MMM       MMMM    WMM@   0MM      2M   ZMMM      :MMMa    MMM7      
  iMMMMMM@            XMMM   .MM  XMM   aMMM     MMM:    MMW   .MM  XM@   ZMMM     MM0      aMMX      8MMM    .MMM    WMM     ZMr   MMMX      MMM8    0MMS       
 SMMMMi                MMM,  rMM,MM2    MMM:    SMMM     ;MM2  ;MM,MMS    MMM,    MMM       MMM       MMM.    MMM     .MM    MMZ    MMM      XMMM    rMMB        
 :MMM7                 MM@    BMMM      aMM     ;MMX      aMMX  8MMM      ZMM     MM8      .MMX      MMM2    iMMX      ,MMMMMMZ     .@;      MMM     WMM         
    .                  .:                         :        0MMZ                                      .2Z                  :7r.                ;i                 
                                                            0MMMaSMi                                                                                             
                                                             aMMMM7                                                                                              
                                                              .WW                                                                                                
                                                                                                                                                                 
Nakamichi 'Kaidanji', written by Kaze, inspired by Haruhiko Okumura sharing, based on Nobuo Ito's LZSS source, muffinesque tips by m^2, Jim Dempsey and Kirill Kryukov enforced.
This latest (2021-Aug-04) compile has B-trees only matchfinder - called 'SUPRALITE'; Downloadable at: https://twitter.com/Sanmayce

Nakamichi 'Kaidanji' SUPRALITE highlights:

- Back to supersimplisticism - 'Kaidanji' returns refined. Simply, ripping only orders 4,6,8,10,12,14,16,18,36,64 and then quickly trying to expand the match in the found position.

Nakamichi 'Ryuugan-ditto-1TB'/'Dragoneye' LITE highlights:

- The Zennish LZSS Microdeduplicator, a texttoy (file-to-file [de]compressor) written in plain C, 100% FREE - licenseless it is;
- Single-threaded Non-SIMD console tool written entirely by yours truly Sanmayce;
- The first Lempel-Ziv-Storer-Szymanski (LZSS) compressor using 1TB sliding window;
- It targets superfast decompression of huge/tera corpora of textual data;

- LITE means no memmem() (Railgun) invocations are to be made, nah, back to minimalistic Railgun since 2021-Mar-12;
- Compressing at Linear Rate due to Matchfinding based on B-trees only;
- The Leprechaunesque (Internal/External) B-trees order 3 (2 keys MAX) are brutally-optimized;

- Ability to deduplicate (as little as) 64 bytes long chunks 1TB backwards;
- Ability to deduplicate 256[+] bytes long chunks 1TB backwards - when SHA3 enabled;

- CHUNKABLE! Since there are no headers/metadata in .Nakamichi files, arbitrary chunks/blocks can be compressed-n-concatenated;

- SCALABLE! Gets faster when more Physical or/and External RAM is available;
- Dynamical (as command line parameters) selection of HASH & B-trees memory blocks;
- AUTO-RESETTING PASSES (when TargetBuffer is filled then automaticaly restart building by doubling the passes);
- DEFRAGMENTED B-trees are in use during compression stage, their leaves contain only BBs appearing 2[+] times;

- Compileable under Windows and Linux, most suitable to run on 3TB machines;
- Many thanks go to: Haruhiko Okumura, Nobuo Ito, Hamid Buzidi, Landon Noll, J. Andrew Rogers, Aleksey Vaneev (https://github.com/avaneev/prvhash).

Sanmayce, Nakamichi's author, here, some more notes:

- The B-trees form the second layer, the first being HASH table handled by FNV1A-Pippip - the fastest lookup-hash;
- Hashpot a.k.a. hashpools (residing in Physical RAM) could be tuned via command line parameter, thus lessening the B-trees heights;
- The building of B-trees is done dynamically-n-automatically in PASSES, thus LOCALITY/LOCALIZATION leads to cache-friendliness, for example, instead of confusing/blinding
  the SSD controller with building 2^27 ~= 128M B-trees at a time, 'PASSES' revision lowers the "noise/mayhem" 128 times by processing e.g. (20bit) 1M B-trees at a time;

- For so long, the main goal was to throw it in battle, thus to forge one battle-ready *nix/windows tool with superb hash/search/decompress capabilities.
- Straight up, a wish of mine is to have the latest English Wikipedia XML dump decompressed by Nakamichi into physical RAM and then followed by Kazahana's superfast exact/wildcard/fuzzy etudes.
- Through the years, such a transparent decompressor (load booster) has been losing momentum and kinda became unnecessary, but not for me, when HDDs had 40MB/s sequential read speeds it was ...
  boosty, now with SSDs reading at 1700+MB/s, not so smacky, yet uploading (on 128GB machines, 20GB+72GB needed) the whole Wikipedia ~20GB (instead of 72GB) is better, sizewise.

- Currently, having 16 (4,6,8,10,12,14,16,18,36,64,24,28,48,56,128,256) MatchLens being hashed (plus 1 being phantomic/temporary), 29bit hashtable results in: (16+1)*8*(2^29) = (16+1)*8*(1<<29) =
  69632MB hashpot (the cluster of all hashpools), each slot houses a QWORD (being an offset/address of a B-tree root).
- In near future, wanna see a machine (256GB RAM) crunching the 77,265,813,300 bytes file with this command line (it requires 2x72GB + 68GB + 2930GB = 212GB physical RAM + 2.9TB SSD RAM):
  D:\>timer64 Nakamichi.exe enwiki-20200420-pages-articles.xml enwiki-20200420-pages-articles.xml.Nakamichi 29 3000000 e
- In not so far future, wanna see a machine (4096GB RAM) crunching the 72GB file with this command line (it requires 2x72GB + 272GB + 2930GB = 3.3TB physical RAM):
  D:\>timer64 Nakamichi.exe enwiki-20200420-pages-articles.xml enwiki-20200420-pages-articles.xml.Nakamichi 31 3000000 i

Q: - HOW TO BOOST [BUILDING/COMPRESSION] SPEED?
A: - Now, the name of the game is "RAM in spades", if we have a lot then speed is going to jump a lot. How?
- First, by increasing the hash-pool - 20 (number of bits) was used in 'Taishukan' resulting in 2^20 =~ 1M hash-slots a.k.a. B-trees' roots per keysize, naturally, the bigger the faster since B-trees will
  have less height and will be more - aiming to reach the ideal case - having only hash-slots with no actual B-trees! Back to 'Taishukan', the testfile is ~77MB, it suggests using 128M slots to lower 
  height/branching of B-trees - 2^27 leads to using 27. Feartime, going from 20 to 27: 8*(15+1)*2^(20) = 134,217,793 bytes; with the speed-up hash needs 8*(15+1)*2^(27) = 17,179,869,184 bytes, yes 16GB.
- Second, by lowering passes in building the B-trees - the trick is to increase the number in compile-time parameter -DSpeedUpBuilding=32 - (didn't make it as an execute-time parameter, lazy).
  If we look at the 'Taishukan' console log it tells us that (Target-Buffer 106 MB) x 64 passes = 6784MB are needed for building the B-trees in ONE PASS ONLY, so compile with -DSpeedUpBuilding=6784 instead.

Enfun!

This compile uses B-trees only, no memmem() invocations - it compresses worse but much faster.
Allocating Source-Buffer 286 MB ... 
Allocating Target-Buffer 1,286 MB ... 
Source-file-Hash(FNV1A_YoshimitsuTRIAD) = 0x53c2,98e3
Leprechaun: Memory pool for B-trees is 25,000 MB.
Leprechaun: In this revision 128MB 10-way hash is used which results in 10 x 16,777,216 internal B-Trees of order 3.
Leprechaun: Allocating HASH memory 1,476,395,073 bytes = 8*(10+1)*2^(24) ... OK
Leprechaun: Allocating memory for B-trees 25001 MB ... OK
Leprechaun: Size of input file: 300,000,000

Leprechaun: Using (first 16 bytes of) DoubleDeuceAES for Matches 16+ long, in order to reduce memory footprint.
Leprechaun: Inserting keys/BBs of order 004 into B-trees, free RAM in B-tree pool is 00,025,000 MB; Pass #000,001 of 000,001 ... DONE; 00,002,165,167 DEFRAGMENTED B-trees have been rooted so far.
            2,317,998 TotalNonUnique (of length 004) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 006 into B-trees, free RAM in B-tree pool is 00,024,896 MB; Pass #000,001 of 000,001 ... DONE; 00,011,773,639 DEFRAGMENTED B-trees have been rooted so far.
            14,265,502 TotalNonUnique (of length 006) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 008 into B-trees, free RAM in B-tree pool is 00,024,305 MB; Pass #000,001 of 000,001 ... 
Leprechaun: Failure! Increment 'Memory for B-trees'!
Automatically increasing number of passes in order to fit B-trees into Target Buffer.
Leprechaun: Inserting keys/BBs of order 008 into B-trees, free RAM in B-tree pool is 00,024,305 MB; Pass #000,001 of 000,002 ... 
Leprechaun: Failure! Increment 'Memory for B-trees'!
Automatically increasing number of passes in order to fit B-trees into Target Buffer.
Leprechaun: Inserting keys/BBs of order 008 into B-trees, free RAM in B-tree pool is 00,023,418 MB; Pass #000,004 of 000,004 ... DONE; 00,025,257,385 DEFRAGMENTED B-trees have been rooted so far.
            27,331,856 TotalNonUnique (of length 008) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 010 into B-trees, free RAM in B-tree pool is 00,023,122 MB; Pass #000,001 of 000,004 ... 
Leprechaun: Failure! Increment 'Memory for B-trees'!
Automatically increasing number of passes in order to fit B-trees into Target Buffer.
Leprechaun: Inserting keys/BBs of order 010 into B-trees, free RAM in B-tree pool is 00,021,870 MB; Pass #000,008 of 000,008 ... DONE; 00,039,373,862 DEFRAGMENTED B-trees have been rooted so far.
            30,890,705 TotalNonUnique (of length 010) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 012 into B-trees, free RAM in B-tree pool is 00,020,514 MB; Pass #000,008 of 000,008 ... DONE; 00,052,852,569 DEFRAGMENTED B-trees have been rooted so far.
            27,289,914 TotalNonUnique (of length 012) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 014 into B-trees, free RAM in B-tree pool is 00,020,346 MB; Pass #000,001 of 000,008 ... 
Leprechaun: Failure! Increment 'Memory for B-trees'!
Automatically increasing number of passes in order to fit B-trees into Target Buffer.
Leprechaun: Inserting keys/BBs of order 014 into B-trees, free RAM in B-tree pool is 00,019,248 MB; Pass #000,016 of 000,016 ... DONE; 00,065,187,356 DEFRAGMENTED B-trees have been rooted so far.
            22,295,576 TotalNonUnique (of length 014) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 016 into B-trees, free RAM in B-tree pool is 00,018,230 MB; Pass #000,016 of 000,016 ... DONE; 00,076,229,296 DEFRAGMENTED B-trees have been rooted so far.
            18,012,916 TotalNonUnique (of length 016) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 018 into B-trees, free RAM in B-tree pool is 00,017,374 MB; Pass #000,016 of 000,016 ... DONE; 00,086,118,633 DEFRAGMENTED B-trees have been rooted so far.
            14,938,413 TotalNonUnique (of length 018) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 036 into B-trees, free RAM in B-tree pool is 00,016,953 MB; Pass #000,016 of 000,016 ... DONE; 00,091,451,324 DEFRAGMENTED B-trees have been rooted so far.
            6,417,762 TotalNonUnique (of length 036) keys have been inserted into DEFRAGMENTED B-trees.
Leprechaun: Inserting keys/BBs of order 064 into B-trees, free RAM in B-tree pool is 00,016,730 MB; Pass #000,016 of 000,016 ... DONE; 00,094,416,222 DEFRAGMENTED B-trees have been rooted so far.
            3,261,762 TotalNonUnique (of length 064) keys have been inserted into DEFRAGMENTED B-trees.

Histogram (rotate it 90 degrees clockwise) of Unique-Building-Blocks appearing 2[+] times (e.g. 'alfalfa-alfa' stream has 1 BB with length 4 appearing 3 times thus adding 1 to the count for {004]):
 3,261,762{064]
 6,417,762{036]
14,938,413{018]
18,012,916{016]
22,295,576{014]
27,289,914{012]
30,890,705{010]
27,331,856{008]
14,265,502{006]
 2,317,998{004]

Leprechaun: Total Searches-n-Inserts Per Second: 12,776,878 SNIPS = 33,104,892,576 keys in 2,591 seconds
Leprechaun: RAM needed to house B-trees (relative to the file being ripped): 28N = 8,283MB
Leprechaun: RAM needed to build B-trees IN ONE PASS: (Target-Buffer = 1,286 MB) x 16 passes = 20,576MB
Note: In case of RAM in spades then may use compile option: -DSpeedUpBuilding=20576

Compressing 300,000,000 bytes ...
/; Each rotation means 64KB are encoded; Speed: 0,247,116 B/s; Done 100%; Compression Ratio: 2.34:1; Matches(16/24/48): 1,578,470/0/5,314; 128[+] long matches: 15,909; ETA: 0.00 hours  
NumberOfFullLiterals (lower-the-better): 100123
RAM-to-RAM performance: 247116 B/s.
Compressed to 128,125,394 bytes.
Source-file-Hash(FNV1A_YoshimitsuTRIAD) = 0x53c2,98e3
Target-file-Hash(FNV1A_YoshimitsuTRIAD) = 0xa9cb,5180

real	63m24.881s
user	63m9.882s
sys	0m4.725s
[kaze@kaze Kanshiketsu_AES_sourcecode]$ time ./Nakamichi_Vanilla_LITE_Kaidanji_DD-128AES_GCC_64bit.elf 300.Nakamichi> test1_demo.new

real	0m2.639s
user	0m0.670s
sys	0m0.516s
[kaze@kaze Kanshiketsu_AES_sourcecode]$ sha1sum test1_demo
8a87bea02c7f48686ef95796dbc19756af7af1b3  test1_demo
[kaze@kaze Kanshiketsu_AES_sourcecode]$ sha1sum test1_demo.new 
8a87bea02c7f48686ef95796dbc19756af7af1b3  test1_demo.new
[kaze@kaze Kanshiketsu_AES_sourcecode]$ 
