Am 18.07.22 um 17:03 schrieb Tony Pavlov via Sdcc-user:
Hello Philipp,
Monday, July 18, 2022, 5:52:09 PM, you wrote:
PKK> $ in identifiers is a somewhat disputed topic (C++ disallows them, C
historically left it implementation-defined, future C2X is still unclear).
PKK> So I wonder if SDCC users do use $ in identifiers.
i am not sure about the C identifiers, but they are widely used in the debug
info symbols, generated by SDCC.
i kindly ask not to break that debug info functionality.
probably in the identifiers that are visible from C they are not needed.
also $ symbol is used in the inline assembly (reusable labels), so in the
inline asm in __asm / __endasm form
they are very common.
For now, I was only wondering about the use of $ in C identifiers. What
is allowed int he assembler is a different story (though IMO the
identifiers allowed in C should be a subset of those allowed in the
assembler for straightforward implementation).
Philipp
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user