Hi Giri, you may want to look into using a build system rather than specifying all your source files in a single command. I would recommend using Make to start because it is relatively simple. This page looks like a good introduction to it: https://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/.
Make will let you speed up your builds by building multiple source files in parallel and by only re-building source files that have changed since your last build. Best, Thomas On Tue, Jun 22, 2021 at 3:39 AM Velliyangiri A < [email protected]> wrote: > Dear all, > > I have many .c files like hello1.c, hello2.c, etc. All the files are > dependent to one project. > So I want to compile all the files and build a .wasm file. > For compilation, I have specified all the .c files manually in emcc > command line like > > emcc -g hello1.c hello2.c hello3.c -s WASM=1 -s EXPORT_ALL=1 -o hello.js > -s FORCE_FILESYSTEM=1 -s "EXPORTED_RUNTIME_METHODS=['calls','cwrap']" -s > "EXPORTED_FUNCTIONS=['_Hello']" -s ALLOW_MEMORY_GROWTH=1 > > Is there any way available to load all the .c files without specifying > manually in the command line? > Kindly help me. > > Referred links > > 1. > https://developer.mozilla.org/en-US/docs/WebAssembly/existing_C_to_wasm > > 2. https://emscripten.org/docs/compiling/Building-Projects.html > > Thanks and Regards, > Giri > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/emscripten-discuss/e83551e1-ae66-4195-8e58-709991c4e59bn%40googlegroups.com > <https://groups.google.com/d/msgid/emscripten-discuss/e83551e1-ae66-4195-8e58-709991c4e59bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/CAJZD_EUSRuVGwigrdtTvqTv0HhLgm9%2BGDOPpYrft%3DbT2tPxSSQ%40mail.gmail.com.
