hello world in D
Regan Heath
regan at netmail.co.nz
Fri May 31 07:48:12 PDT 2013
On Fri, 31 May 2013 15:33:46 +0100, khurshid
<khurshid.normuradov at gmail.com> wrote:
> I just download dmd 2.063, and compile simple "hello world" program:
>
> // hello.d
> import std.stdio;
> int main()
> {
> writeln("hello world");
> return 0;
> }
>
>
> with -O -release -inline -noboundscheck flags.
>
> And size of result output file 'hello' equal to 1004.1 Kbyte !!!
> Why size is big?
>
>
> I'm using fedora 14, 32-x.
Phobos the std library is statically linked, currently. You will get a
similar size (or greater) if you statically link the stdc library.
Eventually D will support dynamically linking to Phobos.
R
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
More information about the Digitalmars-d
mailing list