D as A Better C?
Mike
none at none.com
Tue Feb 11 19:50:58 PST 2014
On Tuesday, 11 February 2014 at 22:21:32 UTC, ed wrote:
> On Tuesday, 11 February 2014 at 22:01:01 UTC, bearophile wrote:
>
> I think the transition to D in the embedded world would be
> quicker if it were possible to obtain a minimal D language that
> produces the smallest binaries possible.
>
How about a 56 byte hello world [1]. Small binaries are already
possible with GDC (and maybe LDC too). If you want structs and
static classes, you only need a 20 line object.d file for GDC
[2]. This is proving to be quite a suitable replacement for C in
my current experiments.
Mike
[1]
https://github.com/JinShil/D_Runtime_ARM_Cortex-M_study/wiki/1.1---Hello,-World!
[2]
https://github.com/JinShil/D_Runtime_ARM_Cortex-M_study/blob/structs/source/object.d
More information about the Digitalmars-d
mailing list