More compatibility it's possible?
Thomas Schwinge
thomas@codesourcery.com
Wed Nov 13 09:23:00 GMT 2019
Hi!
On 2019-11-11T04:01:46+0100, Gabriel Cortés Garcia <gabriel.cat.developer@gmail.com> wrote:
> Hello, i'm looking for some help.
I'm not completely sure what you're asking for, but let me try.
> It's possible port gcc to wasm?
You mean write a GCC back end so that GCC can generate WebAssembly (wasm)
code? Yes, that can be done, but has not yet been done, and requires
quite a bit of effort.
It's on my (long...) list of interesting things to look into. ;-)
I'm aware of Pip Cet's effort from two, three years ago: "Partial
WebAssembly backend",
<https://sourceware.org/ml/binutils/2017-03/msg00044.html>,
<https://sourceware.org/ml/binutils/2017-03/msg00073.html>. See also the
referenced GitHub repositories ("asmjs" branches):
<https://github.com/pipcet/binutils-gdb/tree/asmjs>,
<https://github.com/pipcet/gcc/tree/asmjs>,
<https://github.com/pipcet/glibc/tree/asmjs>,
<https://github.com/pipcet/asmjs>, and "Dynamic Linking" blos posts on
<https://pipcet.github.io/>.
Some code got committed to binutils, but not (yet?) to GCC, and I don't
know what the overall status is.
> Cross-browser compiler :)
Once GCC supports '--target=[WebAssembly]', it can then be ported so that
it can itself be compiled for/on a WebAssembly system (GCC native build),
and then run inside a WebAssembly "machine" (web browser).
> Wasm to . netstandard -> compile c/c++ everywhere :D
You lost me here. Is this about Microsoft's ".NET Standard"?
Are you asking for a GCC front end for WebAssembly (can be done, a lot of
effort), another GCC back end for ".NET Standard" (if that makes sense;
probably can be done, a lot of effort).
Grüße
Thomas
> Sorry my bad English.
>
>
> Thanks for your attention.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 658 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20191113/19b1a178/attachment.sig>
More information about the Gcc
mailing list