int main() {
  message_out(0);
  message_out(1);
  message_out(2);
  message_out(3);
  message_out2(0);
  message_out2(1);
  message_out2(2);
  message_out2(3);
  message_out3(0);
  message_out3(1);
  message_out3(2);
  message_out3(3);
  printf("%X,%s\n", &"message1", "message1");
  printf("%X,%s\n", &"message12", "message12");
  printf("%X,%s\n", &"message123", "message123");
  printf("\nPress any key to end...");
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
mov    $0x0,%al
call   1030 <message_out@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1030 <message_out@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1030 <message_out@plt>
mov    $0x3,%edi
mov    $0x0,%al
call   1030 <message_out@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1070 <message_out2@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1070 <message_out2@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1070 <message_out2@plt>
mov    $0x3,%edi
mov    $0x0,%al
call   1070 <message_out2@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1060 <message_out3@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1060 <message_out3@plt>
mov    $0x2,%edi
mov    $0x0,%al
call   1060 <message_out3@plt>
mov    $0x3,%edi
mov    $0x0,%al
call   1060 <message_out3@plt>
lea    0xe13(%rip),%rdi
lea    0xe13(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdfb(%rip),%rdi
lea    0xe04(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xde3(%rip),%rdi
lea    0xdf6(%rip),%rdx
mov    %rdx,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %edi,%edi
xor    %eax,%eax
call   1030 <message_out@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <message_out@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1030 <message_out@plt>
mov    $0x3,%edi
xor    %eax,%eax
call   1030 <message_out@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1070 <message_out2@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1070 <message_out2@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1070 <message_out2@plt>
mov    $0x3,%edi
xor    %eax,%eax
call   1070 <message_out2@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1060 <message_out3@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <message_out3@plt>
mov    $0x2,%edi
xor    %eax,%eax
call   1060 <message_out3@plt>
mov    $0x3,%edi
xor    %eax,%eax
call   1060 <message_out3@plt>
lea    0xe21(%rip),%rbx
lea    0xe21(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe16(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe0c(%rip),%rdx
mov    %rbx,%rdi
mov    %rdx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe03(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%X,%s\0A\00"
@.str.1 = [9 x i8] c"message1\00"
@.str.2 = [10 x i8] c"message12\00"
@.str.3 = [11 x i8] c"message123\00"
@.str.4 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 0)
%3 = call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 1)
%4 = call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 2)
%5 = call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 3)
%6 = call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 0)
%7 = call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 1)
%8 = call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 2)
%9 = call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 3)
%10 = call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 0)
%11 = call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 1)
%12 = call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 2)
%13 = call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 3)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), [9 x i8]* @.str.1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), [10 x i8]* @.str.2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), [11 x i8]* @.str.3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%18 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%X,%s\0A\00"
@.str.1 = [9 x i8] c"message1\00"
@.str.2 = [10 x i8] c"message12\00"
@.str.3 = [11 x i8] c"message123\00"
@.str.4 = [25 x i8] c"\0APress any key to end...\00"
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 0)
%2 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 1)
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 2)
%4 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out to i32 (i32, ...)*)(i32 3)
%5 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 0)
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 1)
%7 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 2)
%8 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out2 to i32 (i32, ...)*)(i32 3)
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 0)
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 1)
%11 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 2)
%12 = tail call i32 (i32, ...) bitcast (i32 (...)* @message_out3 to i32 (i32, ...)*)(i32 3)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), [9 x i8]* @.str.1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), [10 x i8]* @.str.2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), [11 x i8]* @.str.3, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%17 = tail call i32 (...) @getchar()
ret i32 0
}