Documenation of difference between em++ and emcc? Can't find any documentation.

1,009 views
Skip to first unread message

Grant Rostig

unread,
Sep 20, 2016, 11:53:35 PM9/20/16
to emscripten-discuss
Hi,

Documenation of difference between em++ and emcc?  Can't find any documentation on the subject.

Output seems to be the same on a simple c++ program, but the two commands appear to be different.

[grostig@localhost emsripten1]$ ls -l ~/src/emsdk_portable/emscripten/master/emcc ~/src/emsdk_portable/emscripten/master/em++
-rwxrwxr-x. 1 grostig grostig 477 Sep 19 16:28 /home/grostig/src/emsdk_portable/emscripten/master/em++
-rwxrwxr-x. 1 grostig grostig 384 Sep 19 16:28 /home/grostig/src/emsdk_portable/emscripten/master/emcc


[grostig@localhost emsripten1]$ sum ~/src/emsdk_portable/emscripten/master/emcc ~/src/emsdk_portable/emscripten/master/em++
45274     1 /home/grostig/src/emsdk_portable/emscripten/master/emcc
61974     1 /home/grostig/src/emsdk_portable/emscripten/master/em++
[grostig@localhost emsripten1]$

I'm just curious I guess.

++Regards, Grant

Jukka Jylänki

unread,
Sep 21, 2016, 4:52:09 AM9/21/16
to emscripte...@googlegroups.com
The difference is the same as with clang and clang++ or gcc vs g++, one is for C sources, another one for c++ sources. Emcc is also able to build c++ sources, which happens when the source type is autodetected from its file extension (.cpp is always built as C++).

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Grant Rostig

unread,
Sep 21, 2016, 8:43:32 PM9/21/16
to emscripten-discuss
Thank you for your explanation. 

+Regards,
Grant
Reply all
Reply to author
Forward
0 new messages