Compiling with gdc vs. gdmd
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Mon Apr 2 08:48:49 PDT 2012
Hello all,
First, congratulations to the GDC team -- I'm playing with D for the first time
in quite a while thanks to the up-to-date gdc 4.6 packages in the upcoming
Ubuntu LTS release. It's great to see that D 2.0 now has this kind of
mainstream distro support.
Anyway, a question about the gdc versus gdmd interfaces to the compiler. I've
noticed that compiling with the options
gdmd -O -release -inline
produces a much faster executable (about twice as fast) as the typical gcc-style
options I would use,
gdc -O2 [or -O3]
Can anyone advise on appropriate gdc options to pick up the same speed level?
Thanks and best wishes,
-- Joe
More information about the D.gnu
mailing list