home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:18898 comp.os.msdos.programmer:11623
- 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
- From: pshuang@zurich.ai.mit.edu (Ping Huang)
- Newsgroups: comp.lang.c,comp.os.msdos.programmer
- Subject: Re: Power C (MIX C) Compiler QUESTION
- Date: 21 Dec 92 18:53:46
- Organization: M.I.T. Artificial Intelligence Lab.
- Lines: 32
- Message-ID: <PSHUANG.92Dec21185346@freeside.ai.mit.edu>
- References: <1992Dec20.191239.28883@leland.Stanford.EDU>
- NNTP-Posting-Host: freeside.ai.mit.edu
- In-reply-to: paranjpe@leland.Stanford.EDU's message of 20 Dec 92 19:12:39 GMT
-
- In article <1992Dec20.191239.28883@leland.Stanford.EDU> paranjpe@leland.Stanford.EDU (Milind D Paranjpe) writes:
-
- > I'm trying to use Power C to generage object files to link with Turbo
- > Pascal. To do this, I'm using the /q compiler directive to make
- > Microsoft compatible object files. But the option seems to have no
- > effect. I can't link the resulting object file with the Pascal program.
- > Has anyone used the /q option in Power C successfully??
-
- I don't believe Turbo Pascal (even Borland Pascal 7.0, although I could
- be wrong about this newest version, because of the various additional
- capabilities in the kinds of executable formats it can generate) outputs
- standard object files (Intel OMF is the format's name?) which most C
- compilers output. Therefore, even if you can get Power C to output
- standard object files, Turbo Pascal is still probably outputting .TPU
- units and this gets you nowhere. In addition, you would have to make
- sure that your C compiler is capable of generating code which uses the
- Pascal calling convention (I don't think Turbo Pascal can generate code
- to use C calling convention, although I haven't looked at the sections
- of Borland's manuals about code generation since version 4.0).
-
- However, Stony Brook, a small languages vendor, puts out a product
- called Pascal+ or something like that, which is Turbo Pascal 6.0
- compatible and outputs standard object files. I suspect their
- documentation will include information about how to make cross-language
- procedure calls. JPI might also have something similar to this in their
- product line (C, Modula-2, Pascal).
-
- --
- | Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
- | "One Thing to name them all, One Thing to define them,
- | One Thing to place them in environments and bind them..."
-
-