Re: D for embedded system

2012-10-20 Thread maarten van damme
It's also sad that druntime is so difficult to port to other platforms because of the version(platformdependent) all over the place. Would there be a way to cleanly seperate platform-dependent stuff with platform-independent stuff (so a no-os or android version would be easier to make).

Re: D for embedded system

2012-10-20 Thread Johannes Pfau
Am Sat, 20 Oct 2012 17:27:33 +0200 schrieb "Timo Sintonen" : > On Saturday, 20 October 2012 at 14:35:44 UTC, Martin Nowak wrote: > > I recently did a project on the STM32F0-Discovery board. > > After having used a nice arm-none-eabi-*/openocd toolchain I > > wonder what is needed to build a cross

Re: Need help building GDC on 64-bit Debian

2012-10-20 Thread H. S. Teoh
Huh, weird, I tried compiling again this morning and somehow it works now!! I think it may have to do with the configure options: I tried a different configuration this time: /usr/src/gcc-4.7/gcc-4.7-4.7.2/src/configure \ --enable-languages=d --disable-bootstrap \ --prefix=

Re: Need help building GDC on 64-bit Debian

2012-10-20 Thread H. S. Teoh
On Sat, Oct 20, 2012 at 08:38:23AM +0200, Timo Sintonen wrote: [...] > To make an executable we need headers, a working compiler, working > binutils and working libraries for the target system. Even if the > target system is the same ( I assume you are not making a > cross-compiler) configure may g

Re: D for embedded system

2012-10-20 Thread Timo Sintonen
On Saturday, 20 October 2012 at 14:35:44 UTC, Martin Nowak wrote: I recently did a project on the STM32F0-Discovery board. After having used a nice arm-none-eabi-*/openocd toolchain I wonder what is needed to build a cross-gdc. As these devices are really short on Flash and RAM I would've only

Re: D for embedded system

2012-10-20 Thread Martin Nowak
On Thu, 18 Oct 2012 13:36:45 +0200, Timo Sintonen wrote: I have written programs with C for Arm Cortex controller boards. I think that D might be an interesting nut simple enough oo language. So far I have a working gdc for my target, but I can not compile the runtime library because of

Re: D for embedded system

2012-10-20 Thread Timo Sintonen
On Saturday, 20 October 2012 at 09:40:28 UTC, Iain Buclaw wrote: Quick question, what is defined in your phobos-vers-syms file? (This will be located in the libphobos / libdruntime build directory). Regards NoSystem @DCFG_NEARBYINT@ @DCFG_TGAMMA@ @DCFG_NAN@ GNU_Need_exp2 GNU_Need_log2

Re: D for embedded system

2012-10-20 Thread Jacob Carlborg
On 2012-10-19 20:08, Johannes Pfau wrote: Druntime might not need file access/etc as long as version(Posix) isn't defined for your target. Nobody has used GDC/D/druntime on a system without OS afaik. So you have to pioneer ;-) I see two solutions: There are developers who have used D1 to crea

Re: D for embedded system

2012-10-20 Thread Iain Buclaw
On 20 October 2012 09:23, Timo Sintonen wrote: >> >> Nobody has used GDC/D/druntime on a system without OS afaik. So you >> have to pioneer ;-) > > > So I have to try it on my own... > > >> * Create your own, simple runtime library. There's no real >> documentation on the minimum interface a run

Re: D for embedded system

2012-10-20 Thread Timo Sintonen
Nobody has used GDC/D/druntime on a system without OS afaik. So you have to pioneer ;-) So I have to try it on my own... * Create your own, simple runtime library. There's no real documentation on the minimum interface a runtime must implement (the compiler calls back into the runtime)