Article View: comp.lang.modula2
Article #1508Linking JPI M2 to MicroSoft C .OBJ
From: John Mcmonagle
Date: Wed, 11 Nov 1992 14:37
Date: Wed, 11 Nov 1992 14:37
38 lines
1995 bytes
1995 bytes
MAM> I'm trying to link JPI Modula-2 to an object file which was written with
MAM> Microsoft C. I don't have the source to the object file, or anything
MAM> useful except the names of the procedures included. I've tried wading
MAM> throught the JPI documentation to try to find which pragmas I need in
MAM> order to make the link work, but I haven't quite been able to do it. I
MAM> was hoping someone out on the nets would be able to help me out.
The following is from a definition module that interfaces to a MSC library in the large model.
(*# module(implementation=>off, init_code=>off) *)
DEFINITION MODULE MW;
(*# data(near_ptr => off),
call(o_a_copy => off, o_a_size => off, c_conv => on, near_call => off,
reg_saved => (si, di, ds, st1, st2), reg_param => ()),
name(prefix => c)
*)
Hope this helps.
I'm not really that much of an expert at those pragmas.
One other thing that could cause problems is the TopSpeed linker may not like some things in msc obj's, but at least Sean Wilson at the Clarion US office has ways to fix most possible problems. Clarion US
303-785-4556 support
303-946-1650 fax
On an unrelated matter the PMI BBS number has been changed. PMI
box 8402
Green Bay WI 54308
414-468-6040 voice
414-465-0464 fax
414-465-1656 bbs
--
uucp: uunet!m2xenix!puddle!139!590!John.Mcmonagle
Internet: John.Mcmonagle@f590.n139.z1.fidonet.org
Technical Details
Message-ID:
<18376.2B02109B@puddle.fidonet.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!europa.asd.contel.com!emory!ogicse!psgrain!puddle!f590.n139.z1.fidonet.org!John.McmonagleShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!europa.asd.contel.com!emory!ogicse!psgrain!puddle!f590.n139.z1.fidonet.org!John.Mcmonagle From: John.Mcmonagle@f590.n139.z1.fidonet.org (John Mcmonagle) Newsgroups: comp.lang.modula2 Subject: Linking JPI M2 to MicroSoft C .OBJ Message-ID: <18376.2B02109B@puddle.fidonet.org> Date: 11 Nov 92 14:37:14 GMT Article-I.D.: puddle.18376.2B02109B Sender: ufgate@puddle.fidonet.org (newsout1.26) Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI Lines: 38