const char *get_literal() {
  const char *literal = "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789"
                        "0123456789";
  return literal;
}


x86 assembly (clang, -O0):
<get_literal>:
push   %rbp
mov    %rsp,%rbp
lea    0xef5(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_literal>:
lea    0xef9(%rip),%rax
ret

LLVM IR (-O0):
@.str = [511 x i8] c"012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\00"
define i8* @get_literal() {
%1 = alloca i8*
store i8* getelementptr inbounds ([511 x i8], [511 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i8*, i8** %1
ret i8* %2
}

LLVM IR (-O2):
@.str = [511 x i8] c"012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\00"
define i8* @get_literal() {
ret i8* getelementptr inbounds ([511 x i8], [511 x i8]* @.str, i64 0, i64 0)
}