Programs in D are huge

Diego diego.marcolungo at gmail.com
Tue Aug 16 08:25:18 UTC 2022


Hello everyone,

I'm a Java programmer at work but i'm learning D for pleasure. 
I'm reading _The D Programming Language by Ali Çehreli_.

I noticed that DMD creates very huge executable, for example an 
empty program:

```
empty.d:

void main() {
	
}
```

after a compilation with these flags `dmd -de -w empty.d` i have 
an executable of 869KiB
It seams huge in my opinion for an empty program

What are the best practices to reduce the size?


More information about the Digitalmars-d-learn mailing list