int main() {
  char tracks[][81] = {"I left my heart in Harvard Med School",
                       "Newark, Newark - a wonderful town",
                       "Dancing with a Dork", "From here to maternity",
                       "The girl from Two Jima"};
  printf("tracks[0]: %s \n", tracks[0]);
  printf("tracks[3]: %s \n", tracks[3]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1a0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rdi
lea    0xec0(%rip),%rsi
mov    $0x195,%edx
call   1040 <memcpy@plt>
lea    -0x1a0(%rbp),%rsi
lea    0x103d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x1a0(%rbp),%rsi
add    $0xf3,%rsi
lea    0x1031(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x1a0,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x195,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
lea    0x104f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf3(%rsp),%rsi
lea    0x1046(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x1a0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.tracks = [5 x [81 x i8]] [[81 x i8] c"I left my heart in Harvard Med School\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\00\00\00\00\00\00\00\00\00\00\00\00", [81 x i8] c"Newark, Newark - a wonderful town\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\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [81 x i8] c"Dancing with a Dork\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\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", [81 x i8] c"From here to maternity\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\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", [81 x i8] c"The girl from Two Jima\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\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"]
@.str = [16 x i8] c"tracks[0]: %s \0A\00"
@.str.1 = [16 x i8] c"tracks[3]: %s \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x [81 x i8]]
store i32 0, i32* %1
%3 = bitcast [5 x [81 x i8]]* %2 to i8*
%4 = getelementptr inbounds [5 x [81 x i8]], [5 x [81 x i8]]* %2, i64 0, i64 0
%5 = getelementptr inbounds [81 x i8], [81 x i8]* %4, i64 0, i64 0
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = getelementptr inbounds [5 x [81 x i8]], [5 x [81 x i8]]* %2, i64 0, i64 3
%8 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %8)
ret i32 0
}

LLVM IR (-O2):
@__const.main.tracks = [5 x [81 x i8]] [[81 x i8] c"I left my heart in Harvard Med School\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\00\00\00\00\00\00\00\00\00\00\00\00", [81 x i8] c"Newark, Newark - a wonderful town\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\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [81 x i8] c"Dancing with a Dork\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\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", [81 x i8] c"From here to maternity\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\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", [81 x i8] c"The girl from Two Jima\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\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"]
@.str = [16 x i8] c"tracks[0]: %s \0A\00"
@.str.1 = [16 x i8] c"tracks[3]: %s \0A\00"
define i32 @main() {
%1 = alloca [5 x [81 x i8]]
%2 = getelementptr inbounds [5 x [81 x i8]], [5 x [81 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = getelementptr inbounds [5 x [81 x i8]], [5 x [81 x i8]]* %1, i64 0, i64 3, i64 0
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %4)
ret i32 0
}