Compiling to LLVM Bitcode
Dave G
test at test.com
Tue May 14 20:30:14 PDT 2013
On Friday, 12 April 2013 at 20:49:54 UTC, David Nadlinger wrote:
>
> What exactly have you tried, and how did it fail? If you just
> used the .bc files generated by CMake, I think the issue might
> be that the C parts of druntime/Phobos (e.g. zlib) are missing.
> This is a known issue
> (https://github.com/ldc-developers/ldc/issues/220), and should
> be fairly easy to fix.
Yes, I used the .bc files generated by cmake. When compiling with
the library there is a multiple symbol definition error (opErr as
I recall - I'm not at my pc right now).
> I'm not sure if you are on the right track here. druntime
> contains a lot of stuff that is just not translatable to
> JavaScript that easily (GC, threading, …).
I believe you are correct; after I originally posted I realised
there was no way the runtime would work out of the box, and
without the runtime there would be little point in using D (the
hope was to use the same code on the client and server so I
didn't have to write/maintain the same functionality twice). When
I saw the port of Unreal Engine my excitement must have clouded
my judgment.
https://github.com/kripken/emscripten/wiki
More information about the digitalmars-d-ldc
mailing list