In evaluating Compaq's Alpha optimized math library (libcpml) a few months ago, we discovered Ulrich Drepper's "Math Library Quality Check" which is a program to evaluate the accuracy of various math library functions like sin, cos, tan, exp, and sqrt.

A few months ago I would have been able to explain the method for testing, but I guess it's not that important.

legalize wrote:Well then you can use the glibc implementation of the math library, right?

Mixing libraries between MIPS Pro and gcc is problematic. Which is why nekoware is MIPS Pro built and remains that way even though gcc improved MIPS optimization such that the difference is not as great as it once was, although I think that vendor platform specific compilers should mostly outperform an all-things-to-all-platforms compiler suite like gcc. I am thinking aCC, SunSoft C SPARC, xlC, Intel Compiler suite, etc.

Oh, and I use gcc on ARM and x86 everyday, from 9 to 5..

R.

Last edited by PymbleSoftware on Mon Nov 22, 2010 2:50 pm, edited 1 time in total.

legalize wrote:Well then you can use the glibc implementation of the math library, right?

Mixing libraries between MIPS Pro and gcc is problematic. Which is why nekoware is MIPS Pro built and remains that way even though gcc improved MIPS optimization such that the difference is not as great as it once was [...]

Well, given that almost every program is going to use something like stdio or libm, doesn't that imply that gcc isn't a suitable development environment?

legalize wrote:Well then you can use the glibc implementation of the math library, right?

Mixing libraries between MIPS Pro and gcc is problematic. Which is why nekoware is MIPS Pro built and remains that way even though gcc improved MIPS optimization such that the difference is not as great as it once was [...]

Well, given that almost every program is going to use something like stdio or libm, doesn't that imply that gcc isn't a suitable development environment?

I don't understand you. stdio is in (g)libc and libm is available with both compilers.

I use MIPS Pro on IRIX for stuff like GtK, stereo-graphics and spaceball programming. I use gcc when gcc-ism are too overwhelming when trying to poert something... Like when I ported the Hercules IBM mainframe emulator, (tarball in IBM forum somewhere)..

legalize wrote:Well then you can use the glibc implementation of the math library, right?

Mixing libraries between MIPS Pro and gcc is problematic. Which is why nekoware is MIPS Pro built and remains that way even though gcc improved MIPS optimization such that the difference is not as great as it once was [...]

Well, given that almost every program is going to use something like stdio or libm, doesn't that imply that gcc isn't a suitable development environment?

No, you misunderstand what gcc provides vs what the C library provides. (And I think PymbleSoftware does as well.)

gcc doesn't require glibc or any C library for that matter. If you compile an application using the cosine function (provided by libm) on IRIX with gcc, gcc will link this binary against IRIX's libm.

You seem to be trying to make this into some sort of disagreement, though I don't understand over what.

legalize wrote:Well then you can use the glibc implementation of the math library, right?

Mixing libraries between MIPS Pro and gcc is problematic. Which is why nekoware is MIPS Pro built and remains that way even though gcc improved MIPS optimization such that the difference is not as great as it once was [...]

Well, given that almost every program is going to use something like stdio or libm, doesn't that imply that gcc isn't a suitable development environment?

No, you misunderstand what gcc provides vs what the C library provides. (And I think PymbleSoftware does as well.)

Actually, I'm clear on that. Yes, I misspoke earlier when I said gcc and not properly glibc.

gcc doesn't require glibc or any C library for that matter. If you compile an application using the cosine function (provided by libm) on IRIX with gcc, gcc will link this binary against IRIX's libm.

Right, but just above there you said that it was problematic to link between MIPSpro produced code and gcc produced code. Since the libm provided with IRIX is compiled with MIPSpro, that would seem to imply that using gcc at all is going to be problematic. Either that, or you meant glibc above when you said gcc, or you mean something else when you say "mixing libraries".

You seem to be trying to make this into some sort of disagreement, though I don't understand over what.

I'm just trying to understand your statement about mixing gcc and MIPSpro.

legalize wrote:Right, but just above there you said that it was problematic to link between MIPSpro produced code and gcc produced code. Since the libm provided with IRIX is compiled with MIPSpro, that would seem to imply that using gcc at all is going to be problematic. Either that, or you meant glibc above when you said gcc, or you mean something else when you say "mixing libraries".

legalize wrote:I'm just trying to understand your statement about mixing gcc and MIPSpro.

I think you're confusing me with PymbleSoftware. I didn't say that. I also don't really know what he means. Code compiled with gcc can certainly be linked with IRIX's libm which is compiled with MIPSPro.

mattst88 wrote:I think you're confusing me with PymbleSoftware. I didn't say that. I also don't really know what he means. Code compiled with gcc can certainly be linked with IRIX's libm which is compiled with MIPSPro.