Xref: utzoo comp.sys.ibm.pc:43413 alt.msdos.programmer:1145 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!mips!apple!agate!agate!hughes From: hughes@tornado.Berkeley.EDU (Eric Hughes) Newsgroups: comp.sys.ibm.pc,alt.msdos.programmer Subject: Re: Lattice .OBJ to MSC .OBJ (GPIB 488) Message-ID: Date: 2 Feb 90 01:28:06 GMT References: Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Organization: ucb Lines: 21 In-reply-to: stergios@lummi.Stanford.EDU's message of 26 Jan 90 09:39:23 GMT Re: linking Lattice 2 binaries to Microsoft 5. Back in the Lattice 2 days, the Microsoft and the Lattice compilers were the same program; Microsoft had licensed from Lattice. At that point, at least the stack calling conventions were the same. Microsoft then wrote their own, and changed the external naming conventions (every public symbol from a C program has an underscore tacked to the beginning of it). I don't think they changed the way the stack frame was created. To create a glue function, get out your assembler and write lines of the form _SYMBOL: jmp SYMBOL Use the proper .model directive for your C model to match the size jmp instructions generated. Now, if they really haven't changed the stack frames, this technique should work. Unfortunately, I threw out my Lattice 2.15 manual a couple of years ago, so I cannot verify this. Eric Hughes hughes@ocf.berkeley.edu