int main() {
  int c, a = 10, b, *p;
  clr();
  p = &a;
  b = *p;
  c = p;
  gotoxy(10, 10);
  printf("The value of 'a' is %d \n", a);
  printf("%d is stored at address %u \n", a, &a);
  printf("%d is stored ad address %u \n", *p, p);
  printf("%d is stored at address %u \n", b, &b);
  printf("%d is stored at address %u \n", c, &c);
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0xa,-0x8(%rbp)
mov    $0x0,%al
call   1030 <clr@plt>
lea    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,-0x4(%rbp)
mov    $0xa,%esi
mov    %esi,%edi
mov    $0x0,%al
call   1060 <gotoxy@plt>
mov    -0x8(%rbp),%esi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xe82(%rip),%rdi
lea    -0x8(%rbp),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rdx
lea    0xe83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xe55(%rip),%rdi
lea    -0xc(%rbp),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4(%rbp),%esi
lea    0xe40(%rip),%rdi
lea    -0x4(%rbp),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movl   $0xa,0xc(%rsp)
xor    %eax,%eax
call   1030 <clr@plt>
movl   $0xa,0x10(%rsp)
lea    0xc(%rsp),%r14
mov    %r14d,0x14(%rsp)
mov    $0xa,%edi
mov    $0xa,%esi
xor    %eax,%eax
call   1060 <gotoxy@plt>
mov    0xc(%rsp),%esi
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe83(%rip),%rbx
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe88(%rip),%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x14(%rsp),%rdx
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [25 x i8] c"The value of 'a' is %d \0A\00"
@.str.1 = [29 x i8] c"%d is stored at address %u \0A\00"
@.str.2 = [29 x i8] c"%d is stored ad address %u \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32*
store i32 10, i32* %2
%5 = call i32 (...) @clr()
store i32* %2, i32** %4
%6 = load i32*, i32** %4
%7 = load i32, i32* %6
store i32 %7, i32* %3
%8 = load i32*, i32** %4
%9 = ptrtoint i32* %8 to i32
store i32 %9, i32* %1
%10 = call i32 (i32, i32, ...) bitcast (i32 (...)* @gotoxy to i32 (i32, i32, ...)*)(i32 10, i32 10)
%11 = load i32, i32* %2
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32* %2)
%15 = load i32*, i32** %4
%16 = load i32, i32* %15
%17 = load i32*, i32** %4
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %16, i32* %17)
%19 = load i32, i32* %3
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %19, i32* %3)
%21 = load i32, i32* %1
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %21, i32* %1)
%23 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"The value of 'a' is %d \0A\00"
@.str.1 = [29 x i8] c"%d is stored at address %u \0A\00"
@.str.2 = [29 x i8] c"%d is stored ad address %u \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
store i32 10, i32* %2
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 (...) @clr()
store i32 10, i32* %3
%8 = ptrtoint i32* %2 to i64
%9 = trunc i64 %8 to i32
store i32 %9, i32* %1
%10 = call i32 (i32, i32, ...) bitcast (i32 (...)* @gotoxy to i32 (i32, i32, ...)*)(i32 10, i32 10)
%11 = load i32, i32* %2
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = load i32, i32* %2
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %13, i32* %2)
%15 = load i32, i32* %2
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i32 %15, i32* %2)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 10, i32* %3)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32 %9, i32* %1)
%19 = call i32 (...) @getchar()
ret i32 0
}