🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc
Article #41471

Re: Lattice .OBJ to MSC .OBJ (GPIB 488)

#41471
From: Eric Hughes
Date: Fri, 02 Feb 1990 01:28
21 lines
1493 bytes
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
Technical Details
Message-ID: <HUGHES.90Feb1172806@tornado.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!mips!apple!agate!agate!hughes
References: <STERGIOS.90Jan26013923@lummi.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <HUGHES.90Feb1172806@tornado.Berkeley.EDU>
Date: 2 Feb 90 01:28:06 GMT
References: <STERGIOS.90Jan26013923@lummi.Stanford.EDU>
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