home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / c / 18898 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  2.4 KB

  1. Xref: sparky comp.lang.c:18898 comp.os.msdos.programmer:11623
  2. Path: sparky!uunet!spool.mu.edu!think.com!enterpoop.mit.edu!micro-heart-of-gold.mit.edu!mintaka.lcs.mit.edu!ai-lab!zurich.ai.mit.edu!pshuang
  3. From: pshuang@zurich.ai.mit.edu (Ping Huang)
  4. Newsgroups: comp.lang.c,comp.os.msdos.programmer
  5. Subject: Re: Power C (MIX C) Compiler QUESTION
  6. Date: 21 Dec 92 18:53:46
  7. Organization: M.I.T. Artificial Intelligence Lab.
  8. Lines: 32
  9. Message-ID: <PSHUANG.92Dec21185346@freeside.ai.mit.edu>
  10. References: <1992Dec20.191239.28883@leland.Stanford.EDU>
  11. NNTP-Posting-Host: freeside.ai.mit.edu
  12. In-reply-to: paranjpe@leland.Stanford.EDU's message of 20 Dec 92 19:12:39 GMT
  13.  
  14. In article <1992Dec20.191239.28883@leland.Stanford.EDU> paranjpe@leland.Stanford.EDU (Milind D Paranjpe) writes:
  15.  
  16.  > I'm trying to use Power C to generage object files to link with Turbo
  17.  > Pascal.  To do this, I'm using the /q compiler directive to make
  18.  > Microsoft compatible object files.  But the option seems to have no
  19.  > effect.  I can't link the resulting object file with the Pascal program.
  20.  > Has anyone used the /q option in Power C successfully??
  21.  
  22. I don't believe Turbo Pascal (even Borland Pascal 7.0, although I could
  23. be wrong about this newest version, because of the various additional
  24. capabilities in the kinds of executable formats it can generate) outputs
  25. standard object files (Intel OMF is the format's name?) which most C
  26. compilers output. Therefore, even if you can get Power C to output
  27. standard object files, Turbo Pascal is still probably outputting .TPU
  28. units and this gets you nowhere. In addition, you would have to make
  29. sure that your C compiler is capable of generating code which uses the
  30. Pascal calling convention (I don't think Turbo Pascal can generate code
  31. to use C calling convention, although I haven't looked at the sections
  32. of Borland's manuals about code generation since version 4.0).
  33.  
  34. However, Stony Brook, a small languages vendor, puts out a product
  35. called Pascal+ or something like that, which is Turbo Pascal 6.0
  36. compatible and outputs standard object files. I suspect their
  37. documentation will include information about how to make cross-language
  38. procedure calls. JPI might also have something similar to this in their
  39. product line (C, Modula-2, Pascal).
  40.  
  41. --
  42. | Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
  43. | "One Thing to name them all, One Thing to define them,
  44. |  One Thing to place them in environments and bind them..."
  45.  
  46.