The current modules implementation is not exactly that, it mainly supports
static linking, that is, taking two js files and merging them into one,
before running that single file. Sounds like you want to load two separate
files, which is something that our dlopen support handles. That has some
limitations as well, see https://github.com/kripken/emscripten/wiki/Linking

In general, as mentioned in that link, full optimization is only possible
when compiling everything all together. But if you don't need absolute
maximal performance, either static linking on dlopen can be useful.

- Alon



On Mon, Jan 6, 2014 at 9:45 PM, Mark Callow <[email protected]>wrote:

>  On 2014/01/07 12:16, Alon Zakai wrote:
>
> I'm curious why you put linking of modules as #1? One of the reasons for
> module linking was to avoid long compilation times, which the new compiler
> solves directly. Or were you using linking for another reason?
>
>  We have a graphics engine and applications which use it. We would like
> app developers to be able to work without having the engine source and
> would like to load the engine code and app code from different .js files.
> Modules seem like the way to do this but possibly I am misunderstanding.
> Until now I have been compiling engine & app together and am just about to
> attempt separating them.
>
> Regards
>
>     -Mark
> --
>  注意:この電子メールには、株式会社エイチアイの機密情報が含まれている場合が有ります。正式なメール受信者では無い場合はメール複製、
> 再配信または情報の使用を固く禁じております。エラー、手違いでこのメールを受け取られましたら削除を行い配信者にご連絡をお願いいたし ます.
>
> NOTE: This electronic mail message may contain confidential and privileged
> information from HI Corporation. If you are not the intended recipient, any
> disclosure, photocopying, distribution or use of the contents of the
> received information is prohibited. If you have received this e-mail in
> error, please notify the sender immediately and permanently delete this
> message and all related copies.
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to