This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Multi line string literals are deprecated considered bad
Andi Kleen wrote:
> > asm(" mov a,b"
> > "\n mov c,d"
> > "\nlabel: mov e,f");
> >
> > Excuse me for not knowing assembly, but you get the idea ;).
>
> This is much harder to edit than
>
> asm(" mov a,b
> mov c,d
> mov e,f");
>
> and adds more typo fix edit cycles and overall a step backwards to the
> inline assembly support. Whoever decided to depricate it apparently
> doesn't use inline assembly.
Well, yours doesn't edit too well in Emacs -- Tab doesn't auto-indent
each line. On the other hand, Emacs will auto-indent this:
asm("mov a,b\n"
"mov c,d\n"
"mov e,f");
So I find that easier to edit :-)
-- Jamie