Thread overview | ||||||
---|---|---|---|---|---|---|
|
July 22, 2011 does the x64 compiler for linux make x64 executables? | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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 Re: does the x64 compiler for linux make x64 executables? | ||||
---|---|---|---|---|
| ||||
Posted in reply to McAnany, Charles E | "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 Re: does the x64 compiler for linux make x64 executables? | ||||
---|---|---|---|---|
| ||||
Posted in reply to McAnany, Charles E | 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 Re: does the x64 compiler for linux make x64 executables? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | > 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 |
Copyright © 1999-2021 by the D Language Foundation