Bug 15006 – Compiling trivial program produces 400,000+ byte object file

Status
RESOLVED
Resolution
INVALID
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-09-03T10:16:00Z
Last change time
2016-03-17T15:25:34Z
Assigned to
nobody
Creator
bugzilla

Comments

Comment #0 by bugzilla — 2015-09-03T10:16:01Z
The following program: ---------------------------------- extern(C) int printf(const char*, ...); private import std.file; alias std.file.getcwd getcwd; void main() { auto s = getcwd(); printf("%.*s\n", s.length, s.ptr); } -------------------------- compiled with: dmd test -unittest produces a 400,000+ byte object file, filled with a truly stunning quantity of functions compiled in from most of Phobos.
Comment #1 by k.hara.pg — 2015-09-03T10:54:01Z
Which version?
Comment #2 by dlang-bugzilla — 2015-09-04T10:46:28Z
Can't reproduce with 2.068 with either -m32 or -m64
Comment #3 by code — 2015-09-06T19:15:12Z
Comment #4 by code — 2015-10-03T15:46:09Z
Any update on that? Otherwise please close.
Comment #5 by temtaime — 2016-03-17T15:25:34Z
No one to care so i think we can close it