Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ucdavis!csusac!unify!reg From: reg@unify.uucp (Russell Grau) Newsgroups: comp.databases Subject: Re: 386 unix vs. 286 xenix unify Message-ID: Date: 16 Feb 90 17:58:37 GMT References: <1990Feb13.040254.7988@chinet.chi.il.us> Reply-To: reg@unify.UUCP (Russell Grau) Distribution: na Organization: Unify Corporation, Sacramento, CA, USA Lines: 41 In article <1990Feb13.040254.7988@chinet.chi.il.us> les@chinet.chi.il.us (Leslie Mikesell) writes: >Can anyone tell me if it is possible to run a '286 Xenix executable >linked with the unify libraries under '386 unix SysVr3? Or, is >it possible to re-compile and re-link on the 386 (to the 286 version >of the library). The 386 linker doesn't seem to like the 286 library >files. The original developer of the application isn't around any >more and the user is reluctant to switch to the 386 version because >he believes the application relies on quirks of that specific '286 >version. I don't know enough about unify to be of much help. > >Les Mikesell > les@chinet.chi.il.us According to the SCO Xenix System V manual "C Language Guide" pages 2-4 and 2-5 it should be possible. You would need to link with the -Ml and -M2 options so the code that would be produced would be 80286 code. The default for the 386 compiler is to produce the 80386 instruction set. This would explain why it would appear not to like your 286 code. I do have one question though: in the source code that is being used, do you have any special calls to the BIOS or any device drivers that are dependent on your C code? If you do not, then it should go across with just a little effort. In the meantime, the code should work as is. Your user could try the switch and if it appears to work he would definitely be better off. The reason for this is that he has a 386 machine running 286 code. Not quite as efficient in the use of the CPU. Russell Grau (916) 920-9092 reg@unify.UUCP Disclaimer - "There's another dead bishop on the landing Mum!" - Monty Python {{ucdavis,csun,lll-crg}!csusac,pyramid,sequent}!unify!reg -- Russell Grau (916) 920-9092 reg@unify.UUCP Disclaimer - "All opinions are my own, and occasionally someone else's" {{ucdavis,csun,lll-crg}!csusac,pyramid,sequent}!unify!reg