home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / lisp / mcl / 1312 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.5 KB

  1. Path: sparky!uunet!zephyr.ens.tek.com!uw-beaver!news.u.washington.edu!usenet.coe.montana.edu!caen!sdd.hp.com!elroy.jpl.nasa.gov!ames!data.nas.nasa.gov!taligent!apple!cambridge.apple.com!djskrien@COLBY.EDU
  2. From: djskrien@COLBY.EDU (Dale Skrien)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: Interfacing to I/O boards
  5. Message-ID: <9208251217.AA18348@host4.COLBY.EDU>
  6. Date: 25 Aug 92 08:21:14 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 21
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10. Original-To: info-mcl@cambridge.apple.com
  11.  
  12. >John Doleac wrote, in a message dated Wed, 12 Aug 1992 15:19-0400
  13. >"I want to call C functions compiled using Symantec's Think C development
  14. >system.
  15. >...
  16. >The manual tells how to use foreign function calls for code
  17. >compiled by MPW.  This does not work for Think C.  Can anyone
  18. >recommend a way to overcome this problem?"
  19. >
  20. >I believe there are two workarounds:
  21. >1) If you have THINK Pascal, you can use it to create a library consisting of
  22. >just your THINK C project. THINK Pascal libraries are the same as MPW object
  23. >files, and can be used by MCL's FF loader.
  24. >2) There is a user contribution on the MCL 2.0 CD-ROM that seems to have
  25. >something to do with loading FF code directly from a THINK C project file. I
  26. >can't vouch for this, as I don't own THINK C, but it's worth a look.
  27. >
  28.  
  29. A third method is to use CODE resources.
  30. I have used THINK Pascal to create functions which are then compiled by
  31. THINK into CODE resources.  These resources can then be called from MCL by
  32. using ff-call.  The same could be done in THINK C.
  33.