int main(int argc, char *argv[]) {
  char a[] = "abcd";
  printf("%#x\t%#x\t%#x\t%#x\n", a, a + 1, a + 2, a + 3);
  char cp = 't';
  char cp0 = '0';
  char cp1 = '1';
  char cp2 = '6';
  char cp3 = '5';
  printf("%#x\t%#x\t%#x\t%#x\t%#x\n", &cp, &cp0, &cp1, &cp2, &cp3);
  printf("%i\t%i\t%i\t%i\n", atoi(&cp), atoi(&cp0), atoi(&cp1), atoi(&cp2));
  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)
mov    0xec4(%rip),%eax
mov    %eax,-0x15(%rbp)
mov    0xebf(%rip),%al
mov    %al,-0x11(%rbp)
lea    -0x15(%rbp),%rsi
lea    -0x15(%rbp),%rdx
add    $0x1,%rdx
lea    -0x15(%rbp),%rcx
add    $0x2,%rcx
lea    -0x15(%rbp),%r8
add    $0x3,%r8
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x74,-0x16(%rbp)
movb   $0x30,-0x17(%rbp)
movb   $0x31,-0x18(%rbp)
movb   $0x36,-0x19(%rbp)
movb   $0x35,-0x1a(%rbp)
lea    0xe78(%rip),%rdi
lea    -0x16(%rbp),%rsi
lea    -0x17(%rbp),%rdx
lea    -0x18(%rbp),%rcx
lea    -0x19(%rbp),%r8
lea    -0x1a(%rbp),%r9
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x16(%rbp),%rdi
mov    $0x0,%al
call   1040 <atoi@plt>
mov    %eax,-0x28(%rbp)
lea    -0x17(%rbp),%rdi
mov    $0x0,%al
call   1040 <atoi@plt>
mov    %eax,-0x24(%rbp)
lea    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <atoi@plt>
mov    %eax,-0x20(%rbp)
lea    -0x19(%rbp),%rdi
mov    $0x0,%al
call   1040 <atoi@plt>
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    %eax,%r8d
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movb   $0x0,0x14(%rsp)
movl   $0x64636261,0x10(%rsp)
64
lea    0x11(%rsp),%rdx
lea    0x12(%rsp),%rcx
lea    0x13(%rsp),%r8
lea    0xeb8(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movb   $0x74,0xf(%rsp)
movb   $0x30,0xe(%rsp)
movb   $0x31,0xd(%rsp)
movb   $0x36,0xc(%rsp)
movb   $0x35,0xb(%rsp)
lea    0xe88(%rip),%rdi
lea    0xf(%rsp),%rbx
lea    0xe(%rsp),%r14
lea    0xd(%rsp),%r15
lea    0xc(%rsp),%r12
lea    0xb(%rsp),%r9
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <atoi@plt>
mov    %eax,%r13d
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <atoi@plt>
mov    %eax,%ebp
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <atoi@plt>
mov    %eax,%ebx
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <atoi@plt>
lea    0xe3b(%rip),%rdi
mov    %r13d,%esi
mov    %ebp,%edx
mov    %ebx,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.a = [5 x i8] c"abcd\00"
@.str = [17 x i8] c"%#x\09%#x\09%#x\09%#x\0A\00"
@.str.1 = [21 x i8] c"%#x\09%#x\09%#x\09%#x\09%#x\0A\00"
@.str.2 = [13 x i8] c"%i\09%i\09%i\09%i\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [5 x i8]
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = bitcast [5 x i8]* %6 to i8*
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%14 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%17 = getelementptr inbounds i8, i8* %16, i64 2
%18 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%19 = getelementptr inbounds i8, i8* %18, i64 3
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %13, i8* %15, i8* %17, i8* %19)
store i8 116, i8* %7
store i8 48, i8* %8
store i8 49, i8* %9
store i8 54, i8* %10
store i8 53, i8* %11
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %7, i8* %8, i8* %9, i8* %10, i8* %11)
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %7)
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %8)
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %9)
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %10)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %22, i32 %23, i32 %24, i32 %25)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [5 x i8] c"abcd\00"
@.str = [17 x i8] c"%#x\09%#x\09%#x\09%#x\0A\00"
@.str.1 = [21 x i8] c"%#x\09%#x\09%#x\09%#x\09%#x\0A\00"
@.str.2 = [13 x i8] c"%i\09%i\09%i\09%i\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [5 x i8]
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 1
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 2
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 3
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* %9, i8* %10, i8* %11, i8* %12)
store i8 116, i8* %4
store i8 48, i8* %5
store i8 49, i8* %6
store i8 54, i8* %7
store i8 53, i8* %8
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* %7, i8* %8)
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %4)
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %5)
%17 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %6)
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %7)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32 %16, i32 %17, i32 %18)
ret i32 0
}