Thread overview
Using a development branch of druntime+phobos with ldc
Oct 10
kinke
October 10
I'm experimenting with a new GC at

https://github.com/nordlow/druntime/blob/fastalloc-gc/src/gc/impl/fastalloc/gc.d

in my druntime branch fastalloc-gc.

I've found a way to benchmark it using dmd as outlined at

https://forum.dlang.org/post/zjxycchqrnxplkrlmnsj@forum.dlang.org

but what about rebuilding druntime+phobos with ldc and linking with that specific libphobos.so when compiling my benchmarking app with ldc? Is it possible? If so, what's the preferred way?
October 10
On Wednesday, 10 October 2018 at 08:29:52 UTC, Per Nordlöw wrote:
> but what about rebuilding druntime+phobos with ldc and linking with that specific libphobos.so when compiling my benchmarking app with ldc? Is it possible? If so, what's the preferred way?

LDC has its own forks of druntime and Phobos, with numerous required adaptations. So you'd need to apply your patches to those forks & build the libs (druntime and Phobos are separate libs for LDC), e.g., with the included ldc-build-runtime tool, which makes this painless: https://wiki.dlang.org/Building_LDC_runtime_libraries
The Wiki page also shows how to link those libs instead of the shipped-with ones.
October 10
On Wednesday, 10 October 2018 at 10:06:36 UTC, kinke wrote:
> LDC has its own forks of druntime and Phobos, with numerous required adaptations. So you'd need to apply your patches to those forks & build the libs (druntime and Phobos are separate libs for LDC), e.g., with the included ldc-build-runtime tool, which makes this painless: https://wiki.dlang.org/Building_LDC_runtime_libraries
> The Wiki page also shows how to link those libs instead of the shipped-with ones.

Thanks.