Ruby extensions on 64 bit linux

http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/149446 makes
me wonder, when writing C extensions, are there anything I should be
watching out for when intending the code to be run on a 64 bit OS?

Thanks,
Joe

I wrote one that works on x86, amd64 & Sparc Ultra.
The only issue I had was my own fault. I had forgotten to declare a
function param of type VALUE and it segfaulted on amd64.
The compiler had not issued any warnings on x86 and it went unnoticed.
Someone complained, I got my hands on an amd64, compiled, got the
compiler warnings, and fixed the problem in minutes.

Hth,
Xavier

···

On Tue, 26 Jul 2005 03:24:26 +0900, Joe Van Dyk wrote:

http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/149446 makes
me wonder, when writing C extensions, are there anything I should be
watching out for when intending the code to be run on a 64 bit OS?

Thanks,
Joe

Joe Van Dyk wrote:

[...] when writing C extensions, are there anything I should be
watching out for when intending the code to be run on a 64 bit OS?

[Target 32- and 64-bit Platforms Together with a Few Simple Datatype Changes]

daz