First working Win64 program!
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Aug 11 10:47:23 PDT 2012
On 8/11/12 4:16 AM, Walter Bright wrote:
> No, it ain't much, some of it is jury rigged, and there's a heluva lot
> more work to do. But we've got liftoff!
>
> -------------------------------------
> import core.stdc.stdio;
>
> extern (C) int main()
> {
> puts("hello world\n");
> return 0;
> }
> -------------------------------------
>
> dmd -c -m64 hello.d
> cl hello.obj
> hello
>
> hello world!
Cool, but the correct implementation should be
-------------------------------------
import core.stdc.stdio;
extern (C) int main()
{
return puts("hello world\n") < 0;
}
-------------------------------------
:o)
Andrei
More information about the Digitalmars-d-announce
mailing list