On 14 January 2015 at 13:32, Mike via D.gnu <d.gnu@puremagic.com> wrote: > On Wednesday, 14 January 2015 at 09:04:50 UTC, Mike wrote: >> >> >> Ok, but I have a mess of classes generated by templates (and I love it). >> Their `name` properties [1] should go in .rodata, right? But why aren't >> they being put in their own sections when compiling with -fdata-sections? >> >> [1] - >> https://github.com/D-Programming-GDC/GDC/blob/master/libphobos/libdruntime/object_.d#L81 >> > > Well, I was working a reduced test case and found that it has > something to do with my trace.d file here: > https://github.com/JinShil/stm32f42_discovery_demo/blob/master/source/stm32f42/trace.d > > If I add a trace.writeLine("x") in my program, then the binary > goes from 2K to 130K. Anyway, it appears it has nothing to do > with TypeInfo. I'll continue to try to reduce. >
Could it be that the entire module trace takes up 128K? Probably not very likely. And I doubt the writeLine/write templates contribute to much.