g++ itself is a 32-bit program from Rtools? Can it
still compile 64-bit executables for 64-bit R?
The 32-bit limitation is really too bad because of the
amount of memory we want in the compiler. This could
be very limiting for Windows users.
Is there somewhere we can point people to get instructions
on swappin gin a 64-bit compiler?
On Saturday, December 29, 2012 2:20:43 PM UTC-5, Bob Carpenter wrote:g++ itself is a 32-bit program from Rtools? Can it
still compile 64-bit executables for 64-bit R?
The 32-bit limitation is really too bad because of the
amount of memory we want in the compiler. This could
be very limiting for Windows users.
Is there somewhere we can point people to get instructions
on swappin gin a 64-bit compiler?According toit seems the executables are 32bit but you can get them to produce 64bit binaries by adding the appropriate flags.
On 12/28/12 9:51 PM, Jiqiang Guo wrote:
> Just to point out that the gcc in Rtools is 32 bits program, which cannot take advantage of all the RAM in a 64 bits OS.
On Sat, Dec 29, 2012 at 2:39 PM, Ben Goodrich <goodri...@gmail.com> wrote:On Saturday, December 29, 2012 2:20:43 PM UTC-5, Bob Carpenter wrote:g++ itself is a 32-bit program from Rtools? Can it
still compile 64-bit executables for 64-bit R?
The 32-bit limitation is really too bad because of the
amount of memory we want in the compiler. This could
be very limiting for Windows users.
Is there somewhere we can point people to get instructions
on swappin gin a 64-bit compiler?According toit seems the executables are 32bit but you can get them to produce 64bit binaries by adding the appropriate flags.
Is there a simple way to figure out whether or not it compiles a 64-bit executable by default? Should I just run a model with a lot of data?
On Saturday, December 29, 2012 2:39:56 PM UTC-5, Daniel Lee wrote:On Sat, Dec 29, 2012 at 2:39 PM, Ben Goodrich <goodri...@gmail.com> wrote:On Saturday, December 29, 2012 2:20:43 PM UTC-5, Bob Carpenter wrote:g++ itself is a 32-bit program from Rtools? Can it
still compile 64-bit executables for 64-bit R?
The 32-bit limitation is really too bad because of the
amount of memory we want in the compiler. This could
be very limiting for Windows users.
Is there somewhere we can point people to get instructions
on swappin gin a 64-bit compiler?According toit seems the executables are 32bit but you can get them to produce 64bit binaries by adding the appropriate flags.
Is there a simple way to figure out whether or not it compiles a 64-bit executable by default? Should I just run a model with a lot of data?I would imagine that it produces 32bit binaries by default. That is the norm on Windows I think, even 64bit Windows.
--
By default, the gcc in rtools generated 32 bit exe code. We can show that by using the file.exe command in rtools\bin.
This is not necessary for R 64 bits on windows since the makefiles used for R CMD SHLIB has -m64 flag. It is just that gcc itself is 32 bits, which seems to easily have memory issues under -O0.
--
The discussion on Rcpp-dev list made me realized that I should installing Rcpp from source if the compiler used for rstan is different from Rcpp.After doing that, switching to a gcc other than that in Rtools seems to work.