>Maybe it's another FAQ, but please give some hints.
>Does x86 Solaris have the same API as Solaris running on Sparc stations?
>More specifically I am using ANSI C, SVR4 API (semaphore, mmap), Pthread
>to develop tools on Sparc, can I just use the same source code and
>recompile on x86 Solaris to have excutables that will work.
Yes and no...
One big question is : do you have to talk between pc and sparc boxes or not
(this includes network links, backed-up files on diskettes or tapes, ...).
If no, then you should not see many differences (hint : use grep and such to
count x86 in man pages. You'll be surprised how few and specific they are).
If yes, then you're going into some trouble because PC and Sparc are endian
opposite (this affects all types, including double and float). Moreover, as
far as I know, Sparc aligns double fields on an 8 byte boundary while Intel
aligns on 4 bytes (if using Sun compiler at least). This could cause you
some trouble if you try to read on a PC a binary file written by Sparc (or
the other way).
You could also see some diffs if you're doing intensive floating maths
because Sparc and Intel don't use the same precision when computing
Note : I'm not 100% sure about the 4/8 bytes boundary but I'll check very
soon - feel free to ask in a week or so.
Quote:>How is x86 Solaris accepted by major software vendors, I am interested
>in EDA vendors like Cadence Synopsys. I don't think they do, there must
>be some reasons.
Quote:>In brief, what's the difference between these two Solaris. Please also
>reply by email.
If you're dealing only with portable code (using XDR or something like,
using nltoh() and such), you'll see no difference. Don't forget about screen
size : 1152x900 is not common on PC video cards.
If you're dealing with system tasks that depend on the hw configuration, it
will be a little different (device names may not be the same for example -
but SunInstall is 99% the same).
And don't forget that Sun support for PC boxes is - to my opinion - not very
good : I'm searching for high quality PC that will run Solaris 2.5.1 and it
is a challenging task because brand names renew their product line quite
often while Sun doesn't do much efforts in maintaining older OS versions on
newer PC hw.
Hopes this help...
Erik PROST - S.A.R.L ORPHEUS