home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / modula2 / 1642 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!rpi!batcomputer!cornell!uw-beaver!news.tek.com!psgrain!m2xenix!puddle!f590.n139.z1.fidonet.org!Sean.Wilson
  2. From: Sean.Wilson@f590.n139.z1.fidonet.org (Sean Wilson)
  3. Sender: ufgate@puddle.fidonet.org (newsout1.26)
  4. Newsgroups: comp.lang.modula2
  5. Subject: Linking JPI M2 to MicroS
  6. Message-ID: <36829.2B518BA2@puddle.fidonet.org>
  7. Date: Thu, 07 Jan 93 10:43:08 PDT
  8. Organization: FidoNet node 1:139/590 - PMI BBS, Green Bay WI
  9. Lines: 45
  10.  
  11. MA>   I'm trying to link JPI Modula-2 to an object file which was written with
  12. MA>   Microsoft C.  I don't have the source to the object file, or anything
  13. MA>   useful except the names of the procedures included.  I've tried wading
  14. MA>   throught the JPI documentation to try to find which pragmas I need in
  15. MA>   order to make the link work, but I haven't quite been able to do it.  I
  16. MA>   was hoping someone out on the nets would be able to help me out.
  17.  
  18. MA>   More specifics:  I'm using JPI Modula-2 v.3.02.  I have no idea what
  19. MA>   version of Microsoft C the object file was written in.  I'm using the
  20. MA>   Compact memory model, and the object file is supposedly using the same
  21. MA>   thing.  The object file is provided by Novell, and is normally linked to
  22. MA>   the Netware C Interface, but I, being a die hard M2 fan, wrote my own
  23. MA>   API using the assembly level interface, and I need now to link to this
  24. MA>   object file because Novell refuses to release the actual algorithms.
  25.  
  26. The quickest way to sort this out would be to log onto the TopSpeed TechLine
  27. BBS on (305) 781 3578 with a description of the problem (i.e. what isn't
  28. working, what are the symptoms?).
  29.  
  30. You need to mmake sure that the correct naming conventions are used:
  31.  
  32. (*# name(prefix=>c) *)
  33.  
  34. The correct calling conventions, i.e. C-style and parameters in registers:
  35.  
  36. (*# call(reg_param=>(), c_conv=>on) *)
  37.  
  38. And also that the definition module doesn't assume an implementation
  39. module:
  40.  
  41. (*# module(implementation=>off, init_code=>off) *)
  42.  
  43. All this and more is documented in the TopSpeed Environment Developer's
  44. Guide.
  45.  
  46. Best Regards
  47.      Sean Wilson
  48.      (TopSpeed Technical Support)
  49.  
  50.  X PQ-Under-Trial 2.15 X Surge into electronic mail.
  51.  
  52.  
  53. --  
  54. uucp: uunet!m2xenix!puddle!139!590!Sean.Wilson
  55. Internet: Sean.Wilson@f590.n139.z1.fidonet.org
  56.