home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / modula2 / 1376 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.9 KB

  1. Path: 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
  2. From: John.Mcmonagle@f590.n139.z1.fidonet.org (John Mcmonagle)
  3. Newsgroups: comp.lang.modula2
  4. Subject: Linking JPI M2 to MicroSoft C .OBJ
  5. Message-ID: <18376.2B02109B@puddle.fidonet.org>
  6. Date: 11 Nov 92 14:37:14 GMT
  7. Article-I.D.: puddle.18376.2B02109B
  8. Sender: ufgate@puddle.fidonet.org (newsout1.26)
  9. Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI
  10. Lines: 38
  11.  
  12.  
  13.  MAM> I'm trying to link JPI Modula-2 to an object file which was written with
  14.  MAM> Microsoft C.  I don't have the source to the object file, or anything
  15.  MAM> useful except the names of the procedures included.  I've tried wading
  16.  MAM> throught the JPI documentation to try to find which pragmas I need in
  17.  MAM> order to make the link work, but I haven't quite been able to do it.  I
  18.  MAM> was hoping someone out on the nets would be able to help me out.
  19.  
  20. The following is from a definition  module that interfaces to a MSC library in the large model.
  21.  
  22. (*# module(implementation=>off, init_code=>off)                               *)
  23.  
  24. DEFINITION MODULE MW;
  25.  
  26.  
  27. (*# data(near_ptr => off),
  28.     call(o_a_copy => off, o_a_size => off, c_conv => on, near_call => off,
  29.     reg_saved => (si, di, ds, st1, st2), reg_param => ()),
  30.     name(prefix => c)
  31.   *)
  32.  
  33. Hope this helps. 
  34. I'm not really that much of an expert at those pragmas. 
  35. 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
  36. 303-785-4556 support
  37. 303-946-1650 fax
  38.  
  39. On an unrelated matter the PMI BBS number has been changed. PMI 
  40. box 8402 
  41. Green Bay WI 54308
  42. 414-468-6040 voice
  43. 414-465-0464 fax
  44. 414-465-1656 bbs
  45.  
  46.  
  47. --  
  48. uucp: uunet!m2xenix!puddle!139!590!John.Mcmonagle
  49. Internet: John.Mcmonagle@f590.n139.z1.fidonet.org
  50.