https://issues.dlang.org/show_bug.cgi?id=15006
Issue ID: 15006
Summary: Compiling trivial program produces 400,000+ byte
object file
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
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.
--