Re: C23 thoughts and opinions

Liste des GroupesRevenir à cl c 
Sujet : Re: C23 thoughts and opinions
De : Bonita.Montero (at) *nospam* gmail.com (Bonita Montero)
Groupes : comp.lang.c
Date : 12. Jun 2024, 19:32:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4cpjh$1pgun$1@raubtier-asyl.eternal-september.org>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
Am 23.05.2024 um 22:06 schrieb Keith Thompson:
David Brown <david.brown@hesbynett.no> writes:
On 23/05/2024 14:11, bart wrote:
[...]
'embed' was discussed a few months ago. I disagreed with the poor
way it was to be implemented: 'embed' notionally generates a list of
comma-separated numbers as tokens, where you have to take care of
any trailing zero yourself if needed. It would also be hopelessly
inefficient if actually implemented like that.
>
Fortunately, it is /not/ actually implemented like that - it is only
implemented "as if" it were like that.  Real prototype implementations
(for gcc and clang - I don't know about other tools) are extremely
efficient at handling #embed.  And the comma-separated numbers can be
more flexible in less common use-cases.
[...]
 I'm aware of a proposed implementation for clang:
 https://github.com/llvm/llvm-project/pull/68620
https://github.com/ThePhD/llvm-project
 I'm currently cloning the git repo, with the aim of building it so I can
try it out and test some corner cases.  It will take a while.
 I'm not aware of any prototype implementation for gcc.  If you are, I'd
be very interested in trying it out.
 (And thanks for starting this thread!)
 
#embed is here:
https://www.phoronix.com/news/LLVM-Clang-19-C23-Embed

Date Sujet#  Auteur
12 Jun 24 o Re: C23 thoughts and opinions1Bonita Montero

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal