On Mon, Jul 18, 2022, 10:07 AM Philipp Klaus Krause <p...@spth.de> wrote:

> 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).
>

Historically, $ has been allowed for C identifiers on VMS/RMS to allow OS
calls which had $ in them. And for porting code written there. Since it's
so unportable I'm not sure how relevant it is.

Warner

Philipp
>
>
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to