void init_encode_table(char **et) {
  et['A'] = ".-";
  et['B'] = "-...";
  et['C'] = "-.-.";
  et['D'] = "-..";
  et['E'] = ".";
  et['F'] = "..-.";
  et['G'] = "--.";
  et['H'] = "....";
  et['I'] = "..";
  et['J'] = ".---";
  et['K'] = "-.-";
  et['L'] = ".-..";
  et['M'] = "--";
  et['N'] = "-.";
  et['O'] = "---";
  et['P'] = ".--.";
  et['Q'] = "--.-";
  et['R'] = ".-.";
  et['S'] = "...";
  et['T'] = "-";
  et['U'] = "..-";
  et['V'] = "...-";
  et['W'] = ".--";
  et['X'] = "-..-";
  et['Y'] = "-.--";
  et['Z'] = "--..";
  et['_'] = "..--";
  et['.'] = "---.";
  et[','] = ".-.-";
  et['?'] = "----";
}


x86 assembly (clang, -O0):
<init_encode_table>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
lea    0xf12(%rip),%rcx
mov    %rcx,0x208(%rax)
mov    -0x8(%rbp),%rax
lea    0xedb(%rip),%rcx
mov    %rcx,0x210(%rax)
mov    -0x8(%rbp),%rax
lea    0xece(%rip),%rcx
mov    %rcx,0x218(%rax)
mov    -0x8(%rbp),%rax
lea    0xeef(%rip),%rcx
mov    %rcx,0x220(%rax)
mov    -0x8(%rbp),%rax
lea    0xee9(%rip),%rcx
mov    %rcx,0x228(%rax)
mov    -0x8(%rbp),%rax
lea    0xe9d(%rip),%rcx
mov    %rcx,0x230(%rax)
mov    -0x8(%rbp),%rax
lea    0xec3(%rip),%rcx
mov    %rcx,0x238(%rax)
mov    -0x8(%rbp),%rax
lea    0xe7e(%rip),%rcx
mov    %rcx,0x240(%rax)
mov    -0x8(%rbp),%rax
lea    0xe96(%rip),%rcx
mov    %rcx,0x248(%rax)
mov    -0x8(%rbp),%rax
lea    0xe5f(%rip),%rcx
mov    %rcx,0x250(%rax)
mov    -0x8(%rbp),%rax
lea    0xe5d(%rip),%rcx
mov    %rcx,0x258(%rax)
mov    -0x8(%rbp),%rax
lea    0xe40(%rip),%rcx
mov    %rcx,0x260(%rax)
mov    -0x8(%rbp),%rax
lea    0xe62(%rip),%rcx
mov    %rcx,0x268(%rax)
mov    -0x8(%rbp),%rax
lea    0xe46(%rip),%rcx
mov    %rcx,0x270(%rax)
mov    -0x8(%rbp),%rax
lea    0xe3d(%rip),%rcx
mov    %rcx,0x278(%rax)
mov    -0x8(%rbp),%rax
lea    0xdfd(%rip),%rcx
mov    %rcx,0x280(%rax)
mov    -0x8(%rbp),%rax
lea    0xdf0(%rip),%rcx
mov    %rcx,0x288(%rax)
mov    -0x8(%rbp),%rax
lea    0xdc1(%rip),%rcx
mov    %rcx,0x290(%rax)
mov    -0x8(%rbp),%rax
lea    0xdaa(%rip),%rcx
mov    %rcx,0x298(%rax)
mov    -0x8(%rbp),%rax
lea    0xde5(%rip),%rcx
mov    %rcx,0x2a0(%rax)
mov    -0x8(%rbp),%rax
lea    0xdb3(%rip),%rcx
mov    %rcx,0x2a8(%rax)
mov    -0x8(%rbp),%rax
lea    0xd9b(%rip),%rcx
mov    %rcx,0x2b0(%rax)
mov    -0x8(%rbp),%rax
lea    0xd94(%rip),%rcx
mov    %rcx,0x2b8(%rax)
mov    -0x8(%rbp),%rax
lea    0xd7c(%rip),%rcx
mov    %rcx,0x2c0(%rax)
mov    -0x8(%rbp),%rax
lea    0xd6f(%rip),%rcx
mov    %rcx,0x2c8(%rax)
mov    -0x8(%rbp),%rax
lea    0xd62(%rip),%rcx
mov    %rcx,0x2d0(%rax)
mov    -0x8(%rbp),%rax
lea    0xd55(%rip),%rcx
mov    %rcx,0x2f8(%rax)
mov    -0x8(%rbp),%rax
lea    0xd48(%rip),%rcx
mov    %rcx,0x170(%rax)
mov    -0x8(%rbp),%rax
lea    0xd3b(%rip),%rcx
mov    %rcx,0x160(%rax)
mov    -0x8(%rbp),%rax
lea    0xd2e(%rip),%rcx
mov    %rcx,0x1f8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_encode_table>:
lea    0xf1e(%rip),%rax
mov    %rax,0x208(%rdi)
lea    0xeeb(%rip),%rax
mov    %rax,0x210(%rdi)
lea    0xee2(%rip),%rax
mov    %rax,0x218(%rdi)
lea    0xf07(%rip),%rax
mov    %rax,0x220(%rdi)
lea    0xf05(%rip),%rax
mov    %rax,0x228(%rdi)
lea    0xebd(%rip),%rax
mov    %rax,0x230(%rdi)
lea    0xee7(%rip),%rax
mov    %rax,0x238(%rdi)
lea    0xea6(%rip),%rax
mov    %rax,0x240(%rdi)
lea    0xec2(%rip),%rax
mov    %rax,0x248(%rdi)
lea    0xe8f(%rip),%rax
mov    %rax,0x250(%rdi)
lea    0xe91(%rip),%rax
mov    %rax,0x258(%rdi)
lea    0xe78(%rip),%rax
mov    %rax,0x260(%rdi)
lea    0xe9e(%rip),%rax
mov    %rax,0x268(%rdi)
lea    0xe86(%rip),%rax
mov    %rax,0x270(%rdi)
lea    0xe81(%rip),%rax
mov    %rax,0x278(%rdi)
lea    0xe45(%rip),%rax
mov    %rax,0x280(%rdi)
lea    0xe3c(%rip),%rax
mov    %rax,0x288(%rdi)
lea    0xe11(%rip),%rax
mov    %rax,0x290(%rdi)
lea    0xdfe(%rip),%rax
mov    %rax,0x298(%rdi)
lea    0xe3d(%rip),%rax
mov    %rax,0x2a0(%rdi)
lea    0xe0f(%rip),%rax
mov    %rax,0x2a8(%rdi)
lea    0xdfb(%rip),%rax
mov    %rax,0x2b0(%rdi)
lea    0xdf8(%rip),%rax
mov    %rax,0x2b8(%rdi)
lea    0xde4(%rip),%rax
mov    %rax,0x2c0(%rdi)
lea    0xddb(%rip),%rax
mov    %rax,0x2c8(%rdi)
lea    0xdd2(%rip),%rax
mov    %rax,0x2d0(%rdi)
lea    0xdc9(%rip),%rax
mov    %rax,0x2f8(%rdi)
lea    0xdc0(%rip),%rax
mov    %rax,0x170(%rdi)
lea    0xdb7(%rip),%rax
mov    %rax,0x160(%rdi)
lea    0xdae(%rip),%rax
mov    %rax,0x1f8(%rdi)
ret

LLVM IR (-O0):
@.str = [3 x i8] c".-\00"
@.str.1 = [5 x i8] c"-...\00"
@.str.2 = [5 x i8] c"-.-.\00"
@.str.3 = [4 x i8] c"-..\00"
@.str.4 = [2 x i8] c".\00"
@.str.5 = [5 x i8] c"..-.\00"
@.str.6 = [4 x i8] c"--.\00"
@.str.7 = [5 x i8] c"....\00"
@.str.8 = [3 x i8] c"..\00"
@.str.9 = [5 x i8] c".---\00"
@.str.10 = [4 x i8] c"-.-\00"
@.str.11 = [5 x i8] c".-..\00"
@.str.12 = [3 x i8] c"--\00"
@.str.13 = [3 x i8] c"-.\00"
@.str.14 = [4 x i8] c"---\00"
@.str.15 = [5 x i8] c".--.\00"
@.str.16 = [5 x i8] c"--.-\00"
@.str.17 = [4 x i8] c".-.\00"
@.str.18 = [4 x i8] c"...\00"
@.str.19 = [2 x i8] c"-\00"
@.str.20 = [4 x i8] c"..-\00"
@.str.21 = [5 x i8] c"...-\00"
@.str.22 = [4 x i8] c".--\00"
@.str.23 = [5 x i8] c"-..-\00"
@.str.24 = [5 x i8] c"-.--\00"
@.str.25 = [5 x i8] c"--..\00"
@.str.26 = [5 x i8] c"..--\00"
@.str.27 = [5 x i8] c"---.\00"
@.str.28 = [5 x i8] c".-.-\00"
@.str.29 = [5 x i8] c"----\00"
define void @init_encode_table(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 65
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = load i8**, i8*** %2
%6 = getelementptr inbounds i8*, i8** %5, i64 66
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %6
%7 = load i8**, i8*** %2
%8 = getelementptr inbounds i8*, i8** %7, i64 67
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %8
%9 = load i8**, i8*** %2
%10 = getelementptr inbounds i8*, i8** %9, i64 68
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %10
%11 = load i8**, i8*** %2
%12 = getelementptr inbounds i8*, i8** %11, i64 69
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8** %12
%13 = load i8**, i8*** %2
%14 = getelementptr inbounds i8*, i8** %13, i64 70
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %14
%15 = load i8**, i8*** %2
%16 = getelementptr inbounds i8*, i8** %15, i64 71
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %16
%17 = load i8**, i8*** %2
%18 = getelementptr inbounds i8*, i8** %17, i64 72
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8** %18
%19 = load i8**, i8*** %2
%20 = getelementptr inbounds i8*, i8** %19, i64 73
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8** %20
%21 = load i8**, i8*** %2
%22 = getelementptr inbounds i8*, i8** %21, i64 74
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %22
%23 = load i8**, i8*** %2
%24 = getelementptr inbounds i8*, i8** %23, i64 75
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %24
%25 = load i8**, i8*** %2
%26 = getelementptr inbounds i8*, i8** %25, i64 76
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %26
%27 = load i8**, i8*** %2
%28 = getelementptr inbounds i8*, i8** %27, i64 77
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %28
%29 = load i8**, i8*** %2
%30 = getelementptr inbounds i8*, i8** %29, i64 78
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8** %30
%31 = load i8**, i8*** %2
%32 = getelementptr inbounds i8*, i8** %31, i64 79
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8** %32
%33 = load i8**, i8*** %2
%34 = getelementptr inbounds i8*, i8** %33, i64 80
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8** %34
%35 = load i8**, i8*** %2
%36 = getelementptr inbounds i8*, i8** %35, i64 81
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8** %36
%37 = load i8**, i8*** %2
%38 = getelementptr inbounds i8*, i8** %37, i64 82
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8** %38
%39 = load i8**, i8*** %2
%40 = getelementptr inbounds i8*, i8** %39, i64 83
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8** %40
%41 = load i8**, i8*** %2
%42 = getelementptr inbounds i8*, i8** %41, i64 84
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8** %42
%43 = load i8**, i8*** %2
%44 = getelementptr inbounds i8*, i8** %43, i64 85
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i8** %44
%45 = load i8**, i8*** %2
%46 = getelementptr inbounds i8*, i8** %45, i64 86
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8** %46
%47 = load i8**, i8*** %2
%48 = getelementptr inbounds i8*, i8** %47, i64 87
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8** %48
%49 = load i8**, i8*** %2
%50 = getelementptr inbounds i8*, i8** %49, i64 88
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i8** %50
%51 = load i8**, i8*** %2
%52 = getelementptr inbounds i8*, i8** %51, i64 89
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i8** %52
%53 = load i8**, i8*** %2
%54 = getelementptr inbounds i8*, i8** %53, i64 90
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i8** %54
%55 = load i8**, i8*** %2
%56 = getelementptr inbounds i8*, i8** %55, i64 95
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i8** %56
%57 = load i8**, i8*** %2
%58 = getelementptr inbounds i8*, i8** %57, i64 46
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8** %58
%59 = load i8**, i8*** %2
%60 = getelementptr inbounds i8*, i8** %59, i64 44
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0), i8** %60
%61 = load i8**, i8*** %2
%62 = getelementptr inbounds i8*, i8** %61, i64 63
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i8** %62
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c".-\00"
@.str.1 = [5 x i8] c"-...\00"
@.str.2 = [5 x i8] c"-.-.\00"
@.str.3 = [4 x i8] c"-..\00"
@.str.4 = [2 x i8] c".\00"
@.str.5 = [5 x i8] c"..-.\00"
@.str.6 = [4 x i8] c"--.\00"
@.str.7 = [5 x i8] c"....\00"
@.str.8 = [3 x i8] c"..\00"
@.str.9 = [5 x i8] c".---\00"
@.str.10 = [4 x i8] c"-.-\00"
@.str.11 = [5 x i8] c".-..\00"
@.str.12 = [3 x i8] c"--\00"
@.str.13 = [3 x i8] c"-.\00"
@.str.14 = [4 x i8] c"---\00"
@.str.15 = [5 x i8] c".--.\00"
@.str.16 = [5 x i8] c"--.-\00"
@.str.17 = [4 x i8] c".-.\00"
@.str.18 = [4 x i8] c"...\00"
@.str.19 = [2 x i8] c"-\00"
@.str.20 = [4 x i8] c"..-\00"
@.str.21 = [5 x i8] c"...-\00"
@.str.22 = [4 x i8] c".--\00"
@.str.23 = [5 x i8] c"-..-\00"
@.str.24 = [5 x i8] c"-.--\00"
@.str.25 = [5 x i8] c"--..\00"
@.str.26 = [5 x i8] c"..--\00"
@.str.27 = [5 x i8] c"---.\00"
@.str.28 = [5 x i8] c".-.-\00"
@.str.29 = [5 x i8] c"----\00"
define void @init_encode_table(i8** writeonly %0) {
%2 = getelementptr inbounds i8*, i8** %0, i64 65
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8** %2
%3 = getelementptr inbounds i8*, i8** %0, i64 66
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds i8*, i8** %0, i64 67
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds i8*, i8** %0, i64 68
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds i8*, i8** %0, i64 69
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds i8*, i8** %0, i64 70
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds i8*, i8** %0, i64 71
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds i8*, i8** %0, i64 72
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds i8*, i8** %0, i64 73
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds i8*, i8** %0, i64 74
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds i8*, i8** %0, i64 75
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds i8*, i8** %0, i64 76
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds i8*, i8** %0, i64 77
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds i8*, i8** %0, i64 78
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds i8*, i8** %0, i64 79
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds i8*, i8** %0, i64 80
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds i8*, i8** %0, i64 81
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds i8*, i8** %0, i64 82
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), i8** %19
%20 = getelementptr inbounds i8*, i8** %0, i64 83
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds i8*, i8** %0, i64 84
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds i8*, i8** %0, i64 85
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds i8*, i8** %0, i64 86
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds i8*, i8** %0, i64 87
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds i8*, i8** %0, i64 88
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds i8*, i8** %0, i64 89
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), i8** %26
%27 = getelementptr inbounds i8*, i8** %0, i64 90
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.25, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds i8*, i8** %0, i64 95
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0), i8** %28
%29 = getelementptr inbounds i8*, i8** %0, i64 46
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds i8*, i8** %0, i64 44
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0), i8** %30
%31 = getelementptr inbounds i8*, i8** %0, i64 63
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0), i8** %31
ret void
}