www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - does the x64 compiler for linux make x64 executables?

reply "McAnany, Charles E" <mcanance rose-hulman.edu> writes:
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.
Jul 21 2011
next sibling parent "Nick Sabalausky" <a a.a> writes:
"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.
Jul 21 2011
prev sibling parent reply Jesse Phillips <jessekphillips+D gmail.com> writes:
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.
Jul 22 2011
parent "Jonathan M Davis" <jmdavisProg gmx.com> writes:
 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
Jul 22 2011