www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - 32 bit x86 Linux operating system

reply Barry Denton <basse42 yahoo.com> writes:
D unix compiler say for 32 bit x86 Linux operating system. Mine is 64 bit dual
core single chanel    will it work for me
Mar 06 2008
next sibling parent BCS <BCS pathlink.com> writes:
Barry Denton wrote:
 D unix compiler say for 32 bit x86 Linux operating system. Mine is 64 bit dual
core single chanel    will it work for me

I don't known for sure that this works but..; if DMD runs, I rather suspect that it's output will as well. ***I don't know of any damage this this could cause but I don't know that it is safe either.***
Mar 06 2008
prev sibling next sibling parent "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"Barry Denton" <basse42 yahoo.com> wrote in message 
news:fqppuj$2b7a$1 digitalmars.com...
D unix compiler say for 32 bit x86 Linux operating system. Mine is 64 bit 
dual core single chanel    will it work for me

I mean, even if your processor is 64-bit, and you have a 32-bit OS installed, it'll work, since the 64-bit processor will just be running in 32-bit mode. But if you have a 64-bit OS, well, you can try. I've never even *touched* 64-bit Linux so my utility comes to an end here.
Mar 06 2008
prev sibling next sibling parent reply Jason House <jason.james.house gmail.com> writes:
Barry Denton wrote:

 D unix compiler say for 32 bit x86 Linux operating system. Mine is 64 bit
 dual core single chanel    will it work for me

DMD will generate 32-bit code GDC has versions to generate 32-bit and 64-bit code If you're going to use DMD, your OS needs to be able to run 32-bit code. If, like me, you run 64-bit ubuntu, you'll need a 32-bit chroot.
Mar 06 2008
parent reply Brad Roberts <braddr puremagic.com> writes:
On Thu, 6 Mar 2008, Jason House wrote:

 Barry Denton wrote:
 
 D unix compiler say for 32 bit x86 Linux operating system. Mine is 64 bit
 dual core single chanel    will it work for me

DMD will generate 32-bit code GDC has versions to generate 32-bit and 64-bit code If you're going to use DMD, your OS needs to be able to run 32-bit code. If, like me, you run 64-bit ubuntu, you'll need a 32-bit chroot.

It doesn't require a chroot environment, just the appropriate 32 bit libraries, which essentially every distribution makes available. I've run dmd on linux x86/64 with various linux distributions. On fc6 I had to install two rpm's, compat-libstdc++-33 and glibc-devel.i386. The box I was running fc6 on was an ec2 instance and the image it started with was a very very slim install (no compiler at all), so the latter is probably already installed on most boxes. On debian I had to install libstdc++6, also often already installed. The only thing you won't be able to do with dmd is create 64 bit applications. As long as you're ok with creating 32 bit applications, you're fine. MOST apps don't need the full 64 bit address space and the cost of the extra memory consumed by using pointers and longs that consume twice the memory. Many can take advantage of the extra registers that become available to 64 bit apps. So, it's all a balancing act. Later, Brad
Mar 06 2008
parent Jason House <jason.james.house gmail.com> writes:
Brad Roberts wrote:

 On Thu, 6 Mar 2008, Jason House wrote:
 
 Barry Denton wrote:
 
 D unix compiler say for 32 bit x86 Linux operating system. Mine is 64
 bit
 dual core single chanel    will it work for me

DMD will generate 32-bit code GDC has versions to generate 32-bit and 64-bit code If you're going to use DMD, your OS needs to be able to run 32-bit code. If, like me, you run 64-bit ubuntu, you'll need a 32-bit chroot.

It doesn't require a chroot environment, just the appropriate 32 bit libraries, which essentially every distribution makes available. I've run dmd on linux x86/64 with various linux distributions. On fc6 I had to install two rpm's, compat-libstdc++-33 and glibc-devel.i386. The box I was running fc6 on was an ec2 instance and the image it started with was a very very slim install (no compiler at all), so the latter is probably already installed on most boxes. On debian I had to install libstdc++6, also often already installed. The only thing you won't be able to do with dmd is create 64 bit applications. As long as you're ok with creating 32 bit applications, you're fine. MOST apps don't need the full 64 bit address space and the cost of the extra memory consumed by using pointers and longs that consume twice the memory. Many can take advantage of the extra registers that become available to 64 bit apps. So, it's all a balancing act. Later, Brad

Well, I've posted questions specifically about ubuntu 64 and got responses back from them. The only way that any of us (that participated in the discussions) got it to work on ubuntu 64 was with a 32 bit chroot. If you can figure out the complete list of packages to makes dmd work under ubuntu 64, please tell me! Ubuntu 64, by default, runs only 64-bit applications.
Mar 06 2008
prev sibling parent Brad Roberts <braddr puremagic.com> writes:
Jason House wrote:
 Brad Roberts wrote:
 
 On Thu, 6 Mar 2008, Jason House wrote:

 Barry Denton wrote:

 D unix compiler say for 32 bit x86 Linux operating system. Mine is 64
 bit
 dual core single chanel    will it work for me

GDC has versions to generate 32-bit and 64-bit code If you're going to use DMD, your OS needs to be able to run 32-bit code. If, like me, you run 64-bit ubuntu, you'll need a 32-bit chroot.

libraries, which essentially every distribution makes available. I've run dmd on linux x86/64 with various linux distributions. On fc6 I had to install two rpm's, compat-libstdc++-33 and glibc-devel.i386. The box I was running fc6 on was an ec2 instance and the image it started with was a very very slim install (no compiler at all), so the latter is probably already installed on most boxes. On debian I had to install libstdc++6, also often already installed. The only thing you won't be able to do with dmd is create 64 bit applications. As long as you're ok with creating 32 bit applications, you're fine. MOST apps don't need the full 64 bit address space and the cost of the extra memory consumed by using pointers and longs that consume twice the memory. Many can take advantage of the extra registers that become available to 64 bit apps. So, it's all a balancing act. Later, Brad

Well, I've posted questions specifically about ubuntu 64 and got responses back from them. The only way that any of us (that participated in the discussions) got it to work on ubuntu 64 was with a 32 bit chroot. If you can figure out the complete list of packages to makes dmd work under ubuntu 64, please tell me! Ubuntu 64, by default, runs only 64-bit applications.

I don't use ubuntu, so I'm ill equipped to discuss what it takes to do anything there. Later, Brad
Mar 06 2008