From: Xavier Date: 2005-07-26T04:06:00+09:00 Subject: Re: Ruby extensions on 64 bit linux 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 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