void help() {
  printf("::: Usage :::\n");
  printf("mctrd [-h][-z][-b][-n][-a num] command name1 [name2] [name3]\n");
  printf("::: Keys :::\n");
  printf("%*s %s\n", -32, "-a | --autostart NUM",
         "set autostart line number for basic file");
  printf("%*s %s\n", -32, "-b | --basic", "add file to archive as basic");
  printf("%*s %s\n", -32, "-h | --help", "show this page");
  printf("%*s %s\n", -32, "-n | --no-head", "push file to TAP without header");
  printf("%*s %s\n", -32, "-z | --hobeta",
         "pop/push file as hobeta (SCL, TRD only)");
  printf("::: Commands :::\n");
  printf("%*s %s\n", -32, "list <image>", "show image catalog");
  printf("%*s %s\n", -32, "new <image>",
         "create new image (TAP, TRD, SCL: depends on extension)");
  printf("%*s %s\n", -32, "add <file> <image>", "put file into image");
  printf("%*s %s\n", -32, "pop <file> <image> [<outname>]",
         "extract file from image (scl,trd)");
  printf("%*s %s\n", -32, "pop <image>",
         "extract all files from image (scl,trd)");
  printf("%*s %s\n", -32, "rename <image> <oname> <nname>",
         "rename file inside image. oname = old name, nname = new name");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf12(%rip),%rdx
lea    0xf20(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf2f(%rip),%rdx
lea    0xf35(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf38(%rip),%rdx
lea    0xf3d(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf32(%rip),%rdx
lea    0xf3a(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf40(%rip),%rdx
lea    0xf47(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe63(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf59(%rip),%rdx
lea    0xf5f(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe42(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf58(%rip),%rdx
lea    0xf5d(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe21(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf7a(%rip),%rdx
lea    0xf86(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe00(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xf80(%rip),%rdx
lea    0xf98(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddf(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xfa0(%rip),%rdx
lea    0xfa5(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdbe(%rip),%rdi
mov    $0xffffffe0,%esi
lea    0xfb2(%rip),%rdx
lea    0xfca(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
lea    0x1122(%rip),%rdi
call   1030 <puts@plt>
lea    0x1124(%rip),%rdi
call   1030 <puts@plt>
lea    0x1155(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rbx
lea    0xeb5(%rip),%rdx
lea    0xec3(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed6(%rip),%rdx
lea    0xedc(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee3(%rip),%rdx
lea    0xee8(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee1(%rip),%rdx
lea    0xee9(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef3(%rip),%rdx
lea    0xefa(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10be(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdx
lea    0xf06(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf03(%rip),%rdx
lea    0xf08(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf29(%rip),%rdx
lea    0xf35(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf33(%rip),%rdx
lea    0xf4b(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf57(%rip),%rdx
lea    0xf5c(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf6d(%rip),%rdx
lea    0xf85(%rip),%rcx
mov    %rbx,%rdi
mov    $0xffffffe0,%esi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c"::: Usage :::\0A\00"
@.str.1 = [62 x i8] c"mctrd [-h][-z][-b][-n][-a num] command name1 [name2] [name3]\0A\00"
@.str.2 = [14 x i8] c"::: Keys :::\0A\00"
@.str.3 = [8 x i8] c"%*s %s\0A\00"
@.str.4 = [21 x i8] c"-a | --autostart NUM\00"
@.str.5 = [41 x i8] c"set autostart line number for basic file\00"
@.str.6 = [13 x i8] c"-b | --basic\00"
@.str.7 = [29 x i8] c"add file to archive as basic\00"
@.str.8 = [12 x i8] c"-h | --help\00"
@.str.9 = [15 x i8] c"show this page\00"
@.str.10 = [15 x i8] c"-n | --no-head\00"
@.str.11 = [32 x i8] c"push file to TAP without header\00"
@.str.12 = [14 x i8] c"-z | --hobeta\00"
@.str.13 = [40 x i8] c"pop/push file as hobeta (SCL, TRD only)\00"
@.str.14 = [18 x i8] c"::: Commands :::\0A\00"
@.str.15 = [13 x i8] c"list <image>\00"
@.str.16 = [19 x i8] c"show image catalog\00"
@.str.17 = [12 x i8] c"new <image>\00"
@.str.18 = [55 x i8] c"create new image (TAP, TRD, SCL: depends on extension)\00"
@.str.19 = [19 x i8] c"add <file> <image>\00"
@.str.20 = [20 x i8] c"put file into image\00"
@.str.21 = [31 x i8] c"pop <file> <image> [<outname>]\00"
@.str.22 = [34 x i8] c"extract file from image (scl,trd)\00"
@.str.23 = [12 x i8] c"pop <image>\00"
@.str.24 = [39 x i8] c"extract all files from image (scl,trd)\00"
@.str.25 = [31 x i8] c"rename <image> <oname> <nname>\00"
@.str.26 = [61 x i8] c"rename file inside image. oname = old name, nname = new name\00"
define void @help() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.14, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.18, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.20, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.22, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.24, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.26, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.3 = [8 x i8] c"%*s %s\0A\00"
@.str.4 = [21 x i8] c"-a | --autostart NUM\00"
@.str.5 = [41 x i8] c"set autostart line number for basic file\00"
@.str.6 = [13 x i8] c"-b | --basic\00"
@.str.7 = [29 x i8] c"add file to archive as basic\00"
@.str.8 = [12 x i8] c"-h | --help\00"
@.str.9 = [15 x i8] c"show this page\00"
@.str.10 = [15 x i8] c"-n | --no-head\00"
@.str.11 = [32 x i8] c"push file to TAP without header\00"
@.str.12 = [14 x i8] c"-z | --hobeta\00"
@.str.13 = [40 x i8] c"pop/push file as hobeta (SCL, TRD only)\00"
@.str.15 = [13 x i8] c"list <image>\00"
@.str.16 = [19 x i8] c"show image catalog\00"
@.str.17 = [12 x i8] c"new <image>\00"
@.str.18 = [55 x i8] c"create new image (TAP, TRD, SCL: depends on extension)\00"
@.str.19 = [19 x i8] c"add <file> <image>\00"
@.str.20 = [20 x i8] c"put file into image\00"
@.str.21 = [31 x i8] c"pop <file> <image> [<outname>]\00"
@.str.22 = [34 x i8] c"extract file from image (scl,trd)\00"
@.str.23 = [12 x i8] c"pop <image>\00"
@.str.24 = [39 x i8] c"extract all files from image (scl,trd)\00"
@.str.25 = [31 x i8] c"rename <image> <oname> <nname>\00"
@.str.26 = [61 x i8] c"rename file inside image. oname = old name, nname = new name\00"
@str = [14 x i8] c"::: Usage :::\00"
@str.27 = [61 x i8] c"mctrd [-h][-z][-b][-n][-a num] command name1 [name2] [name3]\00"
@str.28 = [13 x i8] c"::: Keys :::\00"
@str.29 = [17 x i8] c"::: Commands :::\00"
define void @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.27, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.28, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.29, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.18, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.20, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.22, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.24, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i32 -32, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.26, i64 0, i64 0))
ret void
}