home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14867 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  1.4 KB

  1. Path: sparky!uunet!cs.utexas.edu!wupost!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!slacvm!toge
  2. From: TOGE@SLACVM.SLAC.STANFORD.EDU (Nobukazu Toge)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Fortran callable rountines in THINK C
  5. Message-ID: <92245.175858TOGE@SLACVM.SLAC.STANFORD.EDU>
  6. Date: 2 Sep 92 01:58:57 GMT
  7. References: <1992Sep1.113040.943@galaxy.gov.bc.ca>
  8. Organization: Stanford Linear Accelerator Center
  9. Lines: 18
  10.  
  11. Carl -
  12.  
  13. LS Fortran knows to interface with MPW C, Pascal and so on.  See Appendix F
  14. (p.375) of LSF 3.0 manual.  So if you convert your ThC libraries into MPW
  15. you will be all set.  I understand that MPW .o -> ThC lib conversion is
  16. possible, but I'm not sure about the other way around [which is what you
  17. need].  Check out the ThC manual.
  18.  
  19. If it turns out not so straightforward you may consider porting
  20. your Th C source files and recompile them with MPW C.  The mac .h files
  21. on Th C v.5.0.x are very similar to (or identical to) MPW interfaces.
  22. Except,if you are accessing low memory globals by using LoMem.h in the
  23. {Think #includes} folder, you should modify them to use SysEqu.h. Otherwise
  24. strange errors will happen on MPW.  Another thing is A4/A5 world stuff, but
  25. that probably is a non-issue unless you are writing code resources, not
  26. ordinary library routines.
  27.  
  28. - Nobu Toge (ex-SLAC, now-KEK. My opinions only).
  29.