Re: How minimal I can go using D on GDC?

2013-05-12 Thread Iain Buclaw
On 12 May 2013 18:13, Timo Sintonen wrote: > On Sunday, 12 May 2013 at 15:27:04 UTC, Iain Buclaw wrote: > >> On 12 May 2013 15:41, Rel wrote: >> >> Benjamin Thaut, yes I know. but here is an example, if I add a class to >>> the code like that: >>> >>> >>> module main; >>> >>> extern (C) void* _

Re: How minimal I can go using D on GDC?

2013-05-12 Thread Timo Sintonen
On Sunday, 12 May 2013 at 15:27:04 UTC, Iain Buclaw wrote: On 12 May 2013 15:41, Rel wrote: Benjamin Thaut, yes I know. but here is an example, if I add a class to the code like that: module main; extern (C) void* _Dmodule_ref = null; extern (C) void printf(const char*, ...); extern (C) v

Re: How minimal I can go using D on GDC?

2013-05-12 Thread Iain Buclaw
On 12 May 2013 15:41, Rel wrote: > Benjamin Thaut, yes I know. but here is an example, if I add a class to > the code like that: > > > module main; > > extern (C) void* _Dmodule_ref = null; > extern (C) void printf(const char*, ...); > > extern (C) void puts(const char*); > extern (C) void exit(i

Re: How minimal I can go using D on GDC?

2013-05-12 Thread Iain Buclaw
On 12 May 2013 15:41, Rel wrote: > Benjamin Thaut, yes I know. but here is an example, if I add a class to > the code like that: > > > module main; > > extern (C) void* _Dmodule_ref = null; > extern (C) void printf(const char*, ...); > > extern (C) void puts(const char*); > extern (C) void exit(i

Re: phobos and sysroots

2013-05-12 Thread Johannes Pfau
Am Sun, 12 May 2013 15:38:46 +0100 schrieb Iain Buclaw : > On 12 May 2013 14:23, Johannes Pfau wrote: > > > I noticed that we do not have any sysroot handling in gdc yet. > > > > If gcc is build with --with-sysroot=SYSROOT certain libraries & > > headers are not installed in PREFIX/lib but in SY

Re: How minimal I can go using D on GDC?

2013-05-12 Thread Iain Buclaw
On 11 May 2013 16:51, Rel wrote: > hello! I used to have a bit unusual task: writing pure binary code > (without runtime/os dependency, just native x86 and x64 code). Quite > similar to the OS kernel development I may say, if it makes the problem > clearer for you. I usually wrote such code in C+

Re: How minimal I can go using D on GDC?

2013-05-12 Thread Rel
Benjamin Thaut, yes I know. but here is an example, if I add a class to the code like that: module main; extern (C) void* _Dmodule_ref = null; extern (C) void printf(const char*, ...); extern (C) void puts(const char*); extern (C) void exit(int); class A { int a = 100; int b =

Re: phobos and sysroots

2013-05-12 Thread Iain Buclaw
On 12 May 2013 14:23, Johannes Pfau wrote: > I noticed that we do not have any sysroot handling in gdc yet. > > If gcc is build with --with-sysroot=SYSROOT certain libraries & > headers are not installed in PREFIX/lib but in SYSROOT/lib. At runtime > it is then possible to use the --sysroot=NEWPA

phobos and sysroots

2013-05-12 Thread Johannes Pfau
I noticed that we do not have any sysroot handling in gdc yet. If gcc is build with --with-sysroot=SYSROOT certain libraries & headers are not installed in PREFIX/lib but in SYSROOT/lib. At runtime it is then possible to use the --sysroot=NEWPATH switch and the compiler will then look for includes

Re: How minimal I can go using D on GDC?

2013-05-12 Thread Benjamin Thaut
Am 11.05.2013 17:51, schrieb Rel: hello! I used to have a bit unusual task: writing pure binary code (without runtime/os dependency, just native x86 and x64 code). Quite similar to the OS kernel development I may say, if it makes the problem clearer for you. I usually wrote such code in C++ with