int monthinit(char **mon) {
  mon[0] = "January";
  mon[1] = "February";
  mon[2] = "March";
  mon[3] = "April";
  mon[4] = "May";
  mon[5] = "June";
  mon[6] = "July";
  mon[7] = "August";
  mon[8] = "September";
  mon[9] = "October";
  mon[10] = "November";
  mon[11] = "December";
  return 0;
}


x86 assembly (clang, -O0):
<monthinit>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
lea    0xeed(%rip),%rcx
mov    %rcx,(%rax)
mov    -0x8(%rbp),%rax
lea    0xee7(%rip),%rcx
mov    %rcx,0x8(%rax)
mov    -0x8(%rbp),%rax
lea    0xee1(%rip),%rcx
mov    %rcx,0x10(%rax)
mov    -0x8(%rbp),%rax
lea    0xed8(%rip),%rcx
mov    %rcx,0x18(%rax)
mov    -0x8(%rbp),%rax
lea    0xecf(%rip),%rcx
mov    %rcx,0x20(%rax)
mov    -0x8(%rbp),%rax
lea    0xec4(%rip),%rcx
mov    %rcx,0x28(%rax)
mov    -0x8(%rbp),%rax
lea    0xeba(%rip),%rcx
mov    %rcx,0x30(%rax)
mov    -0x8(%rbp),%rax
lea    0xeb0(%rip),%rcx
mov    %rcx,0x38(%rax)
mov    -0x8(%rbp),%rax
lea    0xea8(%rip),%rcx
mov    %rcx,0x40(%rax)
mov    -0x8(%rbp),%rax
lea    0xea3(%rip),%rcx
mov    %rcx,0x48(%rax)
mov    -0x8(%rbp),%rax
lea    0xe9c(%rip),%rcx
mov    %rcx,0x50(%rax)
mov    -0x8(%rbp),%rax
lea    0xe96(%rip),%rcx
mov    %rcx,0x58(%rax)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<monthinit>:
lea    0xef9(%rip),%rax
mov    %rax,(%rdi)
lea    0xef7(%rip),%rax
mov    %rax,0x8(%rdi)
lea    0xef5(%rip),%rax
mov    %rax,0x10(%rdi)
lea    0xef0(%rip),%rax
mov    %rax,0x18(%rdi)
lea    0xeeb(%rip),%rax
mov    %rax,0x20(%rdi)
lea    0xee4(%rip),%rax
mov    %rax,0x28(%rdi)
lea    0xede(%rip),%rax
mov    %rax,0x30(%rdi)
lea    0xed8(%rip),%rax
mov    %rax,0x38(%rdi)
lea    0xed4(%rip),%rax
mov    %rax,0x40(%rdi)
lea    0xed3(%rip),%rax
mov    %rax,0x48(%rdi)
lea    0xed0(%rip),%rax
mov    %rax,0x50(%rdi)
lea    0xece(%rip),%rax
mov    %rax,0x58(%rdi)
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [8 x i8] c"January\00"
@.str.1 = [9 x i8] c"February\00"
@.str.2 = [6 x i8] c"March\00"
@.str.3 = [6 x i8] c"April\00"
@.str.4 = [4 x i8] c"May\00"
@.str.5 = [5 x i8] c"June\00"
@.str.6 = [5 x i8] c"July\00"
@.str.7 = [7 x i8] c"August\00"
@.str.8 = [10 x i8] c"September\00"
@.str.9 = [8 x i8] c"October\00"
@.str.10 = [9 x i8] c"November\00"
@.str.11 = [9 x i8] c"December\00"
define i32 @monthinit(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = load i8**, i8*** %2
%6 = getelementptr inbounds i8*, i8** %5, i64 1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %6
%7 = load i8**, i8*** %2
%8 = getelementptr inbounds i8*, i8** %7, i64 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %8
%9 = load i8**, i8*** %2
%10 = getelementptr inbounds i8*, i8** %9, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %10
%11 = load i8**, i8*** %2
%12 = getelementptr inbounds i8*, i8** %11, i64 4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %12
%13 = load i8**, i8*** %2
%14 = getelementptr inbounds i8*, i8** %13, i64 5
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 6
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %16
%17 = load i8**, i8*** %2
%18 = getelementptr inbounds i8*, i8** %17, i64 7
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8** %18
%19 = load i8**, i8*** %2
%20 = getelementptr inbounds i8*, i8** %19, i64 8
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %20
%21 = load i8**, i8*** %2
%22 = getelementptr inbounds i8*, i8** %21, i64 9
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8** %22
%23 = load i8**, i8*** %2
%24 = getelementptr inbounds i8*, i8** %23, i64 10
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8** %24
%25 = load i8**, i8*** %2
%26 = getelementptr inbounds i8*, i8** %25, i64 11
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** %26
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"January\00"
@.str.1 = [9 x i8] c"February\00"
@.str.2 = [6 x i8] c"March\00"
@.str.3 = [6 x i8] c"April\00"
@.str.4 = [4 x i8] c"May\00"
@.str.5 = [5 x i8] c"June\00"
@.str.6 = [5 x i8] c"July\00"
@.str.7 = [7 x i8] c"August\00"
@.str.8 = [10 x i8] c"September\00"
@.str.9 = [8 x i8] c"October\00"
@.str.10 = [9 x i8] c"November\00"
@.str.11 = [9 x i8] c"December\00"
define i32 @monthinit(i8** nocapture writeonly %0) {
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %0
%2 = getelementptr inbounds i8*, i8** %0, i64 1
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8** %2
%3 = getelementptr inbounds i8*, i8** %0, i64 2
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds i8*, i8** %0, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds i8*, i8** %0, i64 4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds i8*, i8** %0, i64 5
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds i8*, i8** %0, i64 6
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds i8*, i8** %0, i64 7
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds i8*, i8** %0, i64 8
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds i8*, i8** %0, i64 9
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds i8*, i8** %0, i64 10
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds i8*, i8** %0, i64 11
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** %12
ret i32 0
}