home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / lisp / mcl / 1676 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  3.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!cambridge.apple.com!bill@cambridge.apple.com
  2. From: bill@cambridge.apple.com (Bill St. Clair)
  3. Newsgroups: comp.lang.lisp.mcl
  4. Subject: Re: ffi to MCL
  5. Message-ID: <9211231908.AA05507@cambridge.apple.com>
  6. Date: 23 Nov 92 20:14:40 GMT
  7. Sender: info-mcl-request@cambridge.apple.com
  8. Lines: 65
  9. Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M
  10.  
  11. >Date: Thu, 19 Nov 92 17:24:03 EST
  12. >From: staley@carnap.srl.ford.com (Scott M. Staley)
  13. >To: bill@cambridge.apple.com
  14. >Subject: Re: ffi to MCL
  15. >
  16. >> From bill@cambridge.apple.com Thu Nov 19 13:35:20 1992
  17. >> Date: Thu, 19 Nov 1992 13:41:52 -0600
  18. >> To: staley@carnap.srl.ford.com (Scott M. Staley)
  19. >> From: bill@cambridge.apple.com (Bill St. Clair)
  20. >> Sender: bill@cambridge.apple.com (Unverified)
  21. >> Subject: Re: ffi to MCL
  22. >> Cc: bill@cambridge.apple.com
  23. >> Content-Length: 1178
  24. >> 
  25. >> >Bill.
  26. >> >
  27. >> >I posted a question to the info-mcl a while back and got no takers so 
  28. >> >I thought I would try you direct. I am looking to get a C compiler to
  29. >> >write c code to link with mcl. There is something in the MCL manual about
  30. >> >c compiler must generate mpw compatible .o files. What does that entail?
  31. >> >
  32. >> >Does it mean the mpw is the only C I can use the ffi with, or could 
  33. >> >Think C or others be used. What do you recommend to write C code for MCL.
  34. >> >
  35. >> >I have no desire to but a c compiler to write plain c. My only purpose is
  36. >> >to hook to MCL.
  37. >> 
  38. >> I have heard that Think Pascal is able to import Think C projects and
  39. >> write MPW compatible libraries, but I have never done it. I know of no
  40. >> other way to make Think C generate object files that MCL's FFI knows
  41. >> how to parse.
  42. >> 
  43. >> One other way to run Think C generated code from MCL is to create a
  44. >> code resource. Guillaume Cartier has written some code to simplify finding
  45. >> entry points in this code resource. His code is on the MCL 2.0 CD in
  46. >> the folder:
  47. >> 
  48. >>    MCL 2.0 CD:User Contributed Code:Think C Interface:
  49. >> 
  50. >> It is also available for anonymous FTP from cambridge.apple.com in the file:
  51. >> 
  52. >>   /pub/mcl2/contrib/Cartiers-Contribs-1.2.sea.hqx
  53. >> 
  54. >> 
  55. >
  56. >Bill.
  57. >
  58. >Thanks for the come back. Can you say what is the minimimum mpw C stuff I
  59. >should buy to do the above. Also I might mention that the C code I hope
  60. >to integrate is in ANSI C.
  61.  
  62. I know very little about developing C on the Macintosh. I used Think C
  63. two or three years ago to do a small project, and have used MPW a little
  64. bit to assemble MCL's kernel, but that is the extent of my experience.
  65. From looking at the November, 1992 APDA catalog, I would guess that you would
  66. need to get the MPW C Bundle, which was listed for $425. The description of
  67. the MPW C compiler version 3.2.4 says "The MPW C compiler supports K&R C,
  68. as well as many ANSI extensions to C, including function prototypes and strong type checking. It includes a standard C library that offers the functions
  69. described in the ANSI C standard." I do not know if "many ANSI extensions"
  70. means that it will have problems with your "ANSI C", nor do I know if
  71. Think C is closer to the ANSI standard (or if that will matter for your
  72. code), or how the effort involved in building Think C stubs using Guillaume
  73. Cartier's package compares to writing DEFFCFUN stubs to interface to MPW C.
  74.  
  75. Can someone else help out?
  76.