hello world in D
Rob T
alanb at ucora.com
Sat Jun 1 12:36:11 PDT 2013
On Friday, 31 May 2013 at 14:33:48 UTC, khurshid 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.
>
>
> Regards,
> Khurshid.
Without -noboundscheck hello executable is only 340.6 kbyte.
Compiled using dmd 2.062 on Debian 6.
--rt
More information about the Digitalmars-d
mailing list