Re: Where can I find Pro*C?
Date: 1997/02/05
Message-ID: <5db3gu$los_at_inet-nntp-gw-1.us.oracle.com>#1/1
In article <32F8C120.65A2_at_sdt.com>, Steven Gould <Steven_Gould_at_sdt.com> writes:
|> Ian Sparkes wrote:
|> > All Pro*C does is provide a pre-compiler to turn your embedded SQL into
|> > calls that the C compiler can understand.
|> >
|> > Therefore once you have Pro*C you should be able to use any C environment
|> > you like.
|> I've just ported a Pro*C application from HP to Sun with no major
|> problems but was just wondering (more for future ports), does the Pro*C
|> precompiler generate *exactly* the same C file from a given .pc file
|> under all environments? Or will the C file be different on some
|> environments?
|>
|> I know that I can compare the files generated on the HP with those on
|> the Sun, but I was wondering about the more general case of _any_ other
|> operating system. It is possible that I'll have to port this same
|> application to Windows in the future.
You can't depend on the portability of the .c code at all. It will likely be the same (if not identical) for different flavors of Unix, but I would expect differences for Windows. The .pc code should be portable, though (as long as you don't use any port-specific C features. The embedded SQL is the same).
|>
|> Steven Gould
|> --
|> Any opinions expressed above are those of the author and
|> do not necessarily reflect the opinions of SDT.
Scott Urman Oracle Corporation surman_at_us.oracle.com
Author of _Oracle PL/SQL Programming_ ISBN 0-07-882176-2 Published by Oracle Press - http://www.osborne.com/oracle/index.htm
"The opinions expressed here are my own, and are not necessarily that of Oracle Corporation"
Received on Wed Feb 05 1997 - 00:00:00 CET