void display_help() {
  char help[][(46 - 2)] = {" < ^ > v  the snake head",
                           " O        the snake body",
                           "          you shouldn't hit yourself  ",
                           " #        the wall, don't hit it!",
                           " x        simple food, +1 point",
                           "          +1 length, +1 new food",
                           " @        double food, +1 point",
                           "          +1 length, +2 new food",
                           " %        mega food, +10 points",
                           "          +5 length, +1 new food",
                           " &        eat boost, increases",
                           "          range of eating for a",
                           "          short time",
                           "",
                           "press enter to go back to the menu .."};
  create_enter_dialog("HELP", (const char *)help, 15);
}


x86 assembly (clang, -O0):
<display_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
lea    -0x2a0(%rbp),%rdi
lea    0xec7(%rip),%rsi
mov    $0x294,%edx
call   1030 <memcpy@plt>
lea    -0x2a0(%rbp),%rsi
lea    0x1143(%rip),%rdi
mov    $0xf,%edx
mov    $0x0,%al
call   1040 <create_enter_dialog@plt>
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<display_help>:
push   %rbx
sub    $0x2a0,%rsp
lea    0xed1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x294,%edx
mov    %rbx,%rdi
call   1030 <memcpy@plt>
lea    0x114e(%rip),%rdi
mov    %rbx,%rsi
mov    $0xf,%edx
xor    %eax,%eax
call   1040 <create_enter_dialog@plt>
add    $0x2a0,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.display_help.help = [15 x [44 x i8]] [[44 x i8] c" < ^ > v the snake head\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" O the snake body\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" you shouldn't hit yourself \00\00\00\00\00\00", [44 x i8] c" # the wall, don't hit it!\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" x simple food, +1 point\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" +1 length, +1 new food\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" @ double food, +1 point\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" +1 length, +2 new food\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" % mega food, +10 points\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" +5 length, +1 new food\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" & eat boost, increases\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" range of eating for a\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" short time\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] zeroinitializer, [44 x i8] c"press enter to go back to the menu ..\00\00\00\00\00\00\00"]
@.str = [5 x i8] c"HELP\00"
define void @display_help() {
%1 = alloca [15 x [44 x i8]]
%2 = bitcast [15 x [44 x i8]]* %1 to i8*
%3 = getelementptr inbounds [15 x [44 x i8]], [15 x [44 x i8]]* %1, i64 0, i64 0
%4 = bitcast [44 x i8]* %3 to i8*
%5 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @create_enter_dialog to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %4, i32 15)
ret void
}

LLVM IR (-O2):
@__const.display_help.help = [15 x [44 x i8]] [[44 x i8] c" < ^ > v the snake head\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" O the snake body\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" you shouldn't hit yourself \00\00\00\00\00\00", [44 x i8] c" # the wall, don't hit it!\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" x simple food, +1 point\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" +1 length, +1 new food\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" @ double food, +1 point\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" +1 length, +2 new food\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" % mega food, +10 points\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" +5 length, +1 new food\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" & eat boost, increases\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" range of eating for a\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] c" short time\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00", [44 x i8] zeroinitializer, [44 x i8] c"press enter to go back to the menu ..\00\00\00\00\00\00\00"]
@.str = [5 x i8] c"HELP\00"
define void @display_help() {
%1 = alloca [15 x [44 x i8]]
%2 = getelementptr inbounds [15 x [44 x i8]], [15 x [44 x i8]]* %1, i64 0, i64 0, i64 0
%3 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @create_enter_dialog to i32 (i8*, i8*, i32, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* %2, i32 15)
ret void
}