Interestingly, we get<p><pre><code> .LC0:
.string "Lorem ipsum"
[...]
movl $.LC0, %esi
movl $ptr2, %edi
xorl %eax, %eax
jmp bogus
</code></pre>
for the same experiment done with a const pointer to const data,<p><pre><code> const char * const ptr2 = "Lorem ipsum";
</code></pre>
(Incidentally, this kind of thing is why I prefer to write 'char const STAR const' rather than 'const char STAR const', and 'char const STAR' rather than 'const char STAR'; it systematically places the 'const's.)<p>(PS. HN really doesn't work well for trying to write either unicode or ascii star characters.)