Re: cg92
Posted in 1994
Topics: Performance & Tuning, Platform-Specific Issues
In article <2vs73p$9rt@emory.mathcs.emory.edu>, pmwages@cais.cais.com (Peter Wages) writes: |> For our Sparc2 with Solaris 2.3 we got Informix 5.02. Sun unbundled |> its C compiler and we decide not to buy it, hoping to use gcc. We learned |> we could not compile any of our code, because Informix had hard coded the |> path /opt/SUNWspro/SC2.01/cg92 in its software. I heard informally that |> there was a patch for this problem. But when I talked to Informix today, |> I discovered that there is no patch. Acoording to the woman, any c compiler |> that supports the -xcg92 option will work. What is the -xcg92 option? |> It looks like gcc will not support it. |> |> Informix sent me a message from Arturo Vega of Informix on this. |> I wonder if I have to talk to Informix sales again. The -xcg92 is a flag to the SUN C compiler that the hardware can make use of some extra instructions for floating point without emulating them in software. For performance, the database vendors have compiled with this flag. The code that gets generated checks for the symbol __cg92_used. If it is set, the new code is used; if not, the emulation is used. If you are using any compiler other than SUN's (CenterLine, gcc, etc.), the easiest solution is to define a module that declares this variable and link it in to your executables. That way every reference will be resolved and your software can run. Lorne Schachter Bellcore