From: Joel VanderWerf Date: 2005-11-29T13:40:53+09:00 Subject: Re: building ruby for speed: wise or otherwise? Wayne Vucenic wrote: > Hi Joel, > > >>code compiled with gcc-4.0 (with -O2) turns out to be faster than msvc >>for some numerically intensive simulation code running as a ruby >>extension, whereas msvc was faster than gcc-3.x output code. YMMV. > > > Was this with MSVC 7.1 or 8.0? I'm embarrassed to say it was 6.0. I have 8.0 (express) but can't get past the "MSVCR80.DLL missing" problem, at least with the mkmf.rb-generated Makefile. (For regular projects in MSVC 8.0, you can get around this problem by deleting the foobar.exe.embed.manifest.res file from the Debug dir of project foobar.) Anyone have any ideas? I'm using the single-click installer ruby, which IIRC is compiled with 7.1. Maybe it's not a fair comparison with gcc-built ruby, since that will take advatage of i686 vs. i386. So, not a very scientific comparison at all--it would best to use the latest MS compiler, build ruby from scratch, and make sure to use the same arch settings as for gcc. I'm just glad to see that gcc is so much better than it was. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407