Gdc & avr

Martin Nowak dawg at
Sat Feb 4 15:17:31 PST 2012

On Fri, 03 Feb 2012 23:42:39 +0100, Manu <turkeyman at> wrote:

> On 3 February 2012 23:15, Martin Nowak <dawg at> wrote:
>> On Fri, 03 Feb 2012 17:13:04 +0100, Iain Buclaw <ibuclaw at>
>> wrote:
>>  On 3 February 2012 08:47, Andrea Fontana <advmail at> wrote:
>>>> Is it possible to compile for avr (atmel) platform using gdc? It  
>>>> would be
>>>> interesting for arduino development...
>>> It's unlikely that D will run on systems without a MMU.
> Why?
> It just compiles code. Why should it require dependence on anything?

Arrays, AA, string switch, array ops, boundary checks, closures, exception  
handling, class factory, module constructors, unittests, RTTI.
Just to name some deeply integrated features that require runtime support  
and or heap allocation. Some of them even rely on GC in their current  

Obviously you can compile and link a simple "double add(double a, double  
b) { return a + b; }" without using the runtime.

What's that thing about not using the C runtime? Don't you use malloc,  
atexit, str*?

More information about the Digitalmars-d mailing list