Hi. I want to know whether assembly programming is possible in Ruby like
in C or C++. Please also give some links for that if possible. Thank you
Rock R. wrote:
Hi. I want to know whether assembly programming is possible in Ruby like
in C or C++. Please also give some links for that if possible. Thank you
Ruby supports inline C , and I guess you could call asm from C ,
right ?
Thank you for you reply. But won’t that reduce execution time of the
program?
Rock R. wrote:
Thank you for you reply. But won’t that reduce execution time of the
program?
I don’t think it would be noticeable . Inline C is used in ruby ( among
other things ) to boost performance .
Thank you.
Rock R. wrote:
Hi. I want to know whether assembly programming is possible in Ruby like
in C or C++. Please also give some links for that if possible. Thank you
Assembly and Ruby are kind of an odd couple. Compared to the cost of
Ruby itself, the performance gained by any assembly routine vs. a C
routine will probably be quite small. What is it exactly you want to
do? It just seems so strange to mix Ruby and Assembly code.
On Thu, 28 Aug 2008, Michael M. wrote:
Rock R. wrote:
Assembly and Ruby are kind of an odd couple. Compared to the cost of Ruby
itself, the performance gained by any assembly routine vs. a C routine will
probably be quite small. What is it exactly you want to do? It just seems
so strange to mix Ruby and Assembly code.
Usually inline asm is about doing Rich and Strange things to hardware.
John C. Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : [email protected]
New Zealand