mattgodbolt/gcc-explorer — pull request #23 by rraf (2012-06-09 00:14:33+00:00)
Title: Show literal constants

Show literal constants in assembly.

Right now the assembly displayed shows only the literal constant labels, this patch also shows the strings that those labels stand for, such as:

.LC0:
.string	"hello"
main:
pushl	%ebp
movl	%esp, %ebp
andl	$-16, %esp
subl	$16, %esp
movl	$.LC0, 4(%esp)
movl	$1, (%esp)
call	__printf_chk
xorl	%eax, %eax
leave
ret

This only works for gcc, clang might generate different labels, which should be easy to add to the literalConstant regex.