Ruby extensions on 64 bit linux

X

Xavier

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top