void setup_ram() {
  ((volatile unsigned long *)0x48000000)[0] = 0x22011110;
  ((volatile unsigned long *)0x48000000)[1] = 0x00000700;
  ((volatile unsigned long *)0x48000000)[2] = 0x00000700;
  ((volatile unsigned long *)0x48000000)[3] = 0x00000700;
  ((volatile unsigned long *)0x48000000)[4] = 0x00000700;
  ((volatile unsigned long *)0x48000000)[5] = 0x00000700;
  ((volatile unsigned long *)0x48000000)[6] = 0x00000700;
  ((volatile unsigned long *)0x48000000)[7] = 0x00018005;
  ((volatile unsigned long *)0x48000000)[8] = 0x00018005;
  ((volatile unsigned long *)0x48000000)[9] = 0x008C07A3;
  ((volatile unsigned long *)0x48000000)[10] = 0x000000B1;
  ((volatile unsigned long *)0x48000000)[11] = 0x00000030;
  ((volatile unsigned long *)0x48000000)[12] = 0x00000030;
}


x86 assembly (clang, -O0):
<setup_ram>:
push   %rbp
mov    %rsp,%rbp
mov    $0x48000000,%eax
movq   $0x22011110,(%rax)
mov    $0x48000000,%eax
movq   $0x700,0x8(%rax)
mov    $0x48000000,%eax
movq   $0x700,0x10(%rax)
mov    $0x48000000,%eax
movq   $0x700,0x18(%rax)
mov    $0x48000000,%eax
movq   $0x700,0x20(%rax)
mov    $0x48000000,%eax
movq   $0x700,0x28(%rax)
mov    $0x48000000,%eax
movq   $0x700,0x30(%rax)
mov    $0x48000000,%eax
movq   $0x18005,0x38(%rax)
mov    $0x48000000,%eax
movq   $0x18005,0x40(%rax)
mov    $0x48000000,%eax
movq   $0x8c07a3,0x48(%rax)
mov    $0x48000000,%eax
movq   $0xb1,0x50(%rax)
mov    $0x48000000,%eax
movq   $0x30,0x58(%rax)
mov    $0x48000000,%eax
movq   $0x30,0x60(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<setup_ram>:
movq   $0x22011110,0x48000000
48 10 11 01 22
movq   $0x700,0x48000008
movq   $0x700,0x48000010
movq   $0x700,0x48000018
movq   $0x700,0x48000020
movq   $0x700,0x48000028
movq   $0x700,0x48000030
movq   $0x18005,0x48000038
movq   $0x18005,0x48000040
movq   $0x8c07a3,0x48000048
movq   $0xb1,0x48000050
movq   $0x30,0x48000058
movq   $0x30,0x48000060
ret

LLVM IR (-O0):
define void @setup_ram() {
store volatile i64 570495248, i64* inttoptr (i64 1207959552 to i64*)
store volatile i64 1792, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 1)
store volatile i64 1792, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 2)
store volatile i64 1792, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 3)
store volatile i64 1792, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 4)
store volatile i64 1792, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 5)
store volatile i64 1792, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 6)
store volatile i64 98309, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 7)
store volatile i64 98309, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 8)
store volatile i64 9176995, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 9)
store volatile i64 177, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 10)
store volatile i64 48, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 11)
store volatile i64 48, i64* getelementptr inbounds (i64, i64* inttoptr (i64 1207959552 to i64*), i64 12)
ret void
}

LLVM IR (-O2):
define void @setup_ram() {
store volatile i64 570495248, i64* inttoptr (i64 1207959552 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959560 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959568 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959576 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959584 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959592 to i64*)
store volatile i64 1792, i64* inttoptr (i64 1207959600 to i64*)
store volatile i64 98309, i64* inttoptr (i64 1207959608 to i64*)
store volatile i64 98309, i64* inttoptr (i64 1207959616 to i64*)
store volatile i64 9176995, i64* inttoptr (i64 1207959624 to i64*)
store volatile i64 177, i64* inttoptr (i64 1207959632 to i64*)
store volatile i64 48, i64* inttoptr (i64 1207959640 to i64*)
store volatile i64 48, i64* inttoptr (i64 1207959648 to i64*)
ret void
}