Mark Mitchell wrote:
Derrick Coetzee wrote:

1. We have a C/C++ source-to-source translation framework. We could
translate each function call "f(a,b,c)" to something like "({ _asm {
... }; typeof(f(a,b,c)) result = f(a,b,c); _asm { ... }; result; })"
2. We could modify the code generation of gcc in a private fork.


With the next GCC, it can be done inside a plugin. I tend to believe this could be a good use case for a plugin, and the plugin infrastructure is probably mature for that. You probably could do that in GIMPLE/SSA without adding a new port.

Regards.



--
Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***

Reply via email to