int main(int argc, char *argv[]) {
  int distance = 100;
  float power = 2.345f;
  double super_power = 56789.4532;
  char initial = 'A';
  char first_name[] = "Anand";
  char last_name[] = "Jeyahar";
  printf("You are %d miles away. \n", distance);
  printf("you have %f levels of power. \n", power);
  printf("You have %f awesome super powers\n", super_power);
  printf("I have an initial %c.\n", initial);
  printf("I have a first name %s. \n", first_name);
  printf("I have a last name %s. \n", last_name);
  printf("My full name is %c %s. %s.\n", first_name, initial, last_name);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x64,-0x14(%rbp)
movss  0xed3(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movsd  0xebe(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movb   $0x41,-0x21(%rbp)
mov    0xebb(%rip),%eax
mov    %eax,-0x27(%rbp)
mov    0xeb5(%rip),%ax
mov    %ax,-0x23(%rbp)
mov    0xeac(%rip),%rax
mov    %rax,-0x2f(%rbp)
mov    -0x14(%rbp),%esi
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xea8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xeb4(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsbl -0x21(%rbp),%esi
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x27(%rbp),%rsi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x2f(%rbp),%rsi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x27(%rbp),%rsi
movsbl -0x21(%rbp),%edx
lea    -0x2f(%rbp),%rcx
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movw   $0x64,0xc(%rsp)
movl   $0x6e616e41,0x8(%rsp)
6e
movabs $0x7261686179654a,%rax
mov    %rax,0x10(%rsp)
lea    0xeda(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
movsd  0xea9(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
movsd  0xe9b(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x41,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
lea    0x8(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    %r14,%rsi
mov    $0x41,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.first_name = [6 x i8] c"Anand\00"
@__const.main.last_name = [8 x i8] c"Jeyahar\00"
@.str = [25 x i8] c"You are %d miles away. \0A\00"
@.str.1 = [31 x i8] c"you have %f levels of power. \0A\00"
@.str.2 = [34 x i8] c"You have %f awesome super powers\0A\00"
@.str.3 = [23 x i8] c"I have an initial %c.\0A\00"
@.str.4 = [26 x i8] c"I have a first name %s. \0A\00"
@.str.5 = [25 x i8] c"I have a last name %s. \0A\00"
@.str.6 = [28 x i8] c"My full name is %c %s. %s.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca double
%9 = alloca i8
%10 = alloca [6 x i8]
%11 = alloca [8 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 100, i32* %6
store float 0x4002C28F60000000, float* %7
store double 0x40EBBAAE809D4952, double* %8
store i8 65, i8* %9
%12 = bitcast [6 x i8]* %10 to i8*
%13 = bitcast [8 x i8]* %11 to i8*
%14 = load i32, i32* %6
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = load float, float* %7
%17 = fpext float %16 to double
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), double %17)
%19 = load double, double* %8
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double %19)
%21 = load i8, i8* %9
%22 = sext i8 %21 to i32
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %22)
%24 = getelementptr inbounds [6 x i8], [6 x i8]* %10, i64 0, i64 0
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 0
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [6 x i8], [6 x i8]* %10, i64 0, i64 0
%29 = load i8, i8* %9
%30 = sext i8 %29 to i32
%31 = getelementptr inbounds [8 x i8], [8 x i8]* %11, i64 0, i64 0
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %28, i32 %30, i8* %31)
ret i32 0
}

LLVM IR (-O2):
@__const.main.first_name = [6 x i8] c"Anand\00"
@.str = [25 x i8] c"You are %d miles away. \0A\00"
@.str.1 = [31 x i8] c"you have %f levels of power. \0A\00"
@.str.2 = [34 x i8] c"You have %f awesome super powers\0A\00"
@.str.3 = [23 x i8] c"I have an initial %c.\0A\00"
@.str.4 = [26 x i8] c"I have a first name %s. \0A\00"
@.str.5 = [25 x i8] c"I have a last name %s. \0A\00"
@.str.6 = [28 x i8] c"My full name is %c %s. %s.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [6 x i8]
%4 = alloca i64
%5 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%6 = bitcast i64* %4 to i8*
store i64 32195248284853578, i64* %4
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 100)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), double 0x4002C28F60000000)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), double 0x40EBBAAE809D4952)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 65)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i64* %4)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i8* %5, i32 65, i64* %4)
ret i32 0
}