Re: Informix on Sun w/Solaris 2.x
Posted in 1994
doc@balr.com (David R. Gilbert) writes: >pmwages@cais.com (Peter Wages) writes: >> >> Warning!!!!!! >> >> We encountered the following when attempting to install 4GL 4.1 >> after installing Solaris 2.3. Sun Microsystems is selling its C compiler >> separately from the operating system. We did not buy the compiler. >> >> Cannot find /opt/sunwspro/sc02.01/cg92 Makes me wonder what will happen when we install the upgrade we just received for the SparcWorks C compiler 3.0. >> [...] >> Beware. > > Yes. Beware. This applies to Informix-ESQL/C as well. We had > the same problem on Solaris 2.2 trying to compile with the > GNU C Compiler. We were forced to buy the SparcWorks C Compiler > from Sun. Actually the GNU C compiler works just fine for ESQL/C. I was able to make it work by adding "int __cg92_used;" to the module containing main. This allows linking to libraries compiled with the cg92 switch. If you really want to be air-tight you can use the GNU C switches that cause the machine code appropriate to newer Sparc processors to be produced which of course is what the cg92 option does. > [...] > "Code compiled with '-cg92 will run, but possibly much more > slowly on pre-SPARC version 8 machines; as such the practice > is strongly discouraged." > ^^^^^^^^ I disagree with Sun's comment about their own compiler or it is worded poorly. If you are doing development for an in-house application to be run on your SS 10's then you want to use the cg92 switch. Why not use hardware multiply if your processor has it. Now, if you are developing a product which will have only a single binary version for the whole Sparc processor line then I would have to examine the trade-offs. And anyone of that mind set would still be producing Intel 8086 compiled versions of programs to be install on Pentiums! > Sun doesn't even recommend using that compiler option that > Informix used when they compiled their libraries. > > We called Informix and they said that they had numerous > complaints about this but that they had NO plans to fix > it in the near future. I hope they never "FIX IT" by simply using the lowest common denominator. The only real problem with Informix is that if you're a developer working on a SS10 then you cannot create a version of your product that runs efficiently on a lower end processor. Of course you can always cheat and use the libraries from a version of ESQL/C licensed for a lower end processor on your SS10. Shhhhhhhhh! -- Daniel Wood daniel@starsight.com The opinions expressed herein are those of myself, my employers, the carriers of this news message or any other messages for that matter, you the reader and any of your relations(whether by birth or chromosome count), all life forms and all inanimate objects.