[Issue 15006] New: Compiling trivial program produces 400,000+ byte object file
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Sep 3 03:16:01 PDT 2015
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: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
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.
--
More information about the Digitalmars-d-bugs
mailing list