Thread overview
does the x64 compiler for linux make x64 executables?
Jul 22, 2011
McAnany, Charles E
Jul 22, 2011
Nick Sabalausky
Jul 22, 2011
Jesse Phillips
Jul 22, 2011
Jonathan M Davis
July 22, 2011
Hi, all.
So I see that there is an Ubuntu dmd that has "x86_64" as the "CPU" column. Before I install Ubuntu to great disappointment, does this mean that I get a 64 bit executable, or does it just mean that the compiler itself is a 64 bit application?
Thanks,
Charles.


July 22, 2011
"McAnany, Charles E" <mcanance@rose-hulman.edu> wrote in message news:mailman.1844.1311309969.14074.digitalmars-d-learn@puremagic.com...
>Hi, all.
>So I see that there is an Ubuntu dmd that has "x86_64" as the "CPU"
>column. Before I install Ubuntu to great disappointment, does this mean
>that
>I get a 64 bit executable, or does it just mean that the compiler itself is
>a 64
>bit application?

The Linux version of DMD can generate 64bit binaries.


July 22, 2011
McAnany, Charles E Wrote:

> Hi, all.
> So I see that there is an Ubuntu dmd that has "x86_64" as the "CPU" column. Before I install Ubuntu to great disappointment, does this mean that I get a 64 bit executable, or does it just mean that the compiler itself is a 64 bit application?
> Thanks,
> Charles.

Pass the compiler -m64 to generate 64bit code, I do not believe it defaults to 64 file format even on the 64bit executable, but maybe that changed and someone can update me on it.
July 22, 2011
> McAnany, Charles E Wrote:
> > Hi, all.
> > So I see that there is an Ubuntu dmd that has "x86_64" as the "CPU"
> > column. Before I install Ubuntu to great disappointment, does this mean
> > that I get a 64 bit executable, or does it just mean that the compiler
> > itself is a 64 bit application? Thanks,
> > Charles.
> 
> Pass the compiler -m64 to generate 64bit code, I do not believe it defaults to 64 file format even on the 64bit executable, but maybe that changed and someone can update me on it.

The documentation page for the compiler says that it does default to -m64 on x86_64:

http://www.digitalmars.com/d/2.0/dmd-linux.html

- Jonathan M Davis