Liste des Groupes | Revenir à cl c |
David Brown <david.brown@hesbynett.no> writes:I haven't seen anything concrete, but I believe I read about it in one of the papers discussing #embed. It may have been just some tests and proofs-of-concept, and not a development branch or proposed implementation.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!)It's not easy to find a topic that is entirely about C, hasn't been discussed to death already, has enough controversial aspects for a serious discussion but not so many that it leads to fights and flames, and is not so esoteric that it causes most readers eyes to glaze over!
Les messages affichés proviennent d'usenet.