int main(void) {
  const char *myskills[5] = {"Differential Calculus", "Multiplying accurately",
                             "Encryption", "Following instructions",
                             "Learning C language"};
  char yourskills[5][40] = {"Integral Calculus", "Dividing", "Cryptography",
                            "Thinking out of the box", "Learning Python"};
  int i;
  puts("Let's compare skillsets.");
  printf("%-36s %-25s\n", "My Skills", "Your Skills");
  for (i = 0; i < 5; i++)
    printf("%-36s %-25s\n", myskills[i], yourskills[i]);
  printf("\nsizeof myskills: %zd, sizeof yourskills: %zd\n", sizeof(myskills),
         sizeof(yourskills));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
lea    0xe97(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xea2(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xeae(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xeae(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xeba(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    -0x100(%rbp),%rdi
lea    0xf29(%rip),%rsi
mov    $0xc8,%edx
call   1060 <memcpy@plt>
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <puts@plt>
lea    0xeb6(%rip),%rdi
lea    0xebc(%rip),%rsi
lea    0xebf(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x104(%rbp)
cmpl   $0x5,-0x104(%rbp)
jge    1235 <main+0xf5>
movslq -0x104(%rbp),%rax
mov    -0x30(%rbp,%rax,8),%rsi
movslq -0x104(%rbp),%rax
lea    -0x100(%rbp),%rdx
imul   $0x28,%rax,%rax
add    %rax,%rdx
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x104(%rbp)
jmp    11e5 <main+0xa5>
lea    0xe63(%rip),%rdi
mov    $0x28,%esi
mov    $0xc8,%edx
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0xc8,%rsp
lea    0xf8f(%rip),%rsi
mov    %rsp,%r14
mov    $0xc8,%edx
mov    %r14,%rdi
call   1050 <memcpy@plt>
lea    0xf0b(%rip),%rdi
xor    %eax,%eax
call   1030 <puts@plt>
lea    0xf16(%rip),%rbx
lea    0xf1c(%rip),%rsi
lea    0xf1f(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7b(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x28(%rsp),%rdx
lea    0xe78(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x50(%rsp),%rdx
lea    0xe79(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x78(%rsp),%rdx
lea    0xe6e(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa0(%rsp),%rdx
lea    0xe6c(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeab(%rip),%rdi
mov    $0x28,%esi
mov    $0xc8,%edx
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [22 x i8] c"Differential Calculus\00"
@.str.1 = [23 x i8] c"Multiplying accurately\00"
@.str.2 = [11 x i8] c"Encryption\00"
@.str.3 = [23 x i8] c"Following instructions\00"
@.str.4 = [20 x i8] c"Learning C language\00"
@__const.main.yourskills = [5 x [40 x i8]] [[40 x i8] c"Integral Calculus\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Dividing\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Cryptography\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Thinking out of the box\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Learning Python\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str.5 = [25 x i8] c"Let's compare skillsets.\00"
@.str.6 = [13 x i8] c"%-36s %-25s\0A\00"
@.str.7 = [10 x i8] c"My Skills\00"
@.str.8 = [12 x i8] c"Your Skills\00"
@.str.9 = [47 x i8] c"\0Asizeof myskills: %zd, sizeof yourskills: %zd\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i8*]
%3 = alloca [5 x [40 x i8]]
%4 = alloca i32
store i32 0, i32* %1
%5 = bitcast [5 x i8*]* %2 to i8*
%6 = bitcast i8* %5 to [5 x i8*]*
%7 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i32 0, i32 0
store i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i32 0, i32 1
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i32 0, i32 2
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0), i8** %9
%10 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i32 0, i32 3
store i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0), i8** %10
%11 = getelementptr inbounds [5 x i8*], [5 x i8*]* %6, i32 0, i32 4
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i32 0, i32 0), i8** %11
%12 = bitcast [5 x [40 x i8]]* %3 to i8*
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %4
br label %15
15: ; preds = %28, %0
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 5
br i1 %17, label %18, label %31
18: ; preds = %15
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [5 x i8*], [5 x i8*]* %2, i64 0, i64 %20
%22 = load i8*, i8** %21
%23 = load i32, i32* %4
%24 = sext i32 %23 to i64
%25 = getelementptr inbounds [5 x [40 x i8]], [5 x [40 x i8]]* %3, i64 0, i64 %24
%26 = getelementptr inbounds [40 x i8], [40 x i8]* %25, i64 0, i64 0
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %22, i8* %26)
br label %28
28: ; preds = %18
%29 = load i32, i32* %4
%30 = add nsw i32 %29, 1
store i32 %30, i32* %4
br label %15
31: ; preds = %15
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i64 40, i64 200)
ret i32 0
}

LLVM IR (-O2):
@.str = [22 x i8] c"Differential Calculus\00"
@.str.1 = [23 x i8] c"Multiplying accurately\00"
@.str.2 = [11 x i8] c"Encryption\00"
@.str.3 = [23 x i8] c"Following instructions\00"
@.str.4 = [20 x i8] c"Learning C language\00"
@__const.main.yourskills = [5 x [40 x i8]] [[40 x i8] c"Integral Calculus\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Dividing\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Cryptography\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Thinking out of the box\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [40 x i8] c"Learning Python\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"]
@.str.5 = [25 x i8] c"Let's compare skillsets.\00"
@.str.6 = [13 x i8] c"%-36s %-25s\0A\00"
@.str.7 = [10 x i8] c"My Skills\00"
@.str.8 = [12 x i8] c"Your Skills\00"
@.str.9 = [47 x i8] c"\0Asizeof myskills: %zd, sizeof yourskills: %zd\0A\00"
define i32 @main() {
%1 = alloca [5 x [40 x i8]]
%2 = getelementptr inbounds [5 x [40 x i8]], [5 x [40 x i8]]* %1, i64 0, i64 0, i64 0
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %2)
%6 = getelementptr inbounds [5 x [40 x i8]], [5 x [40 x i8]]* %1, i64 0, i64 1, i64 0
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %6)
%8 = getelementptr inbounds [5 x [40 x i8]], [5 x [40 x i8]]* %1, i64 0, i64 2, i64 0
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [5 x [40 x i8]], [5 x [40 x i8]]* %1, i64 0, i64 3, i64 0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = getelementptr inbounds [5 x [40 x i8]], [5 x [40 x i8]]* %1, i64 0, i64 4, i64 0
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0), i64 40, i64 200)
ret i32 0
}