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
On Mon, Mar 19, 2001 at 03:54:15PM +0100, Carlo Wood wrote:
> This was discussed on this list before and several suggestions
> for inline assembly have been made. The one I like best myself
> is:
>
> 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.
I think you cannot depricate it without giving an easily writable alternative
to the assembler users (and sorry, your proposal is not easily usable). That
would require a new inline assembly syntax that doesn't rely on strings
that heavily (e.g. like the asm { ... } most other compilers use). With the
current syntax removing the multiline strings would be very bad.
-Andi