delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/26/07:15:17

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <3C7B7608.DAF5A24A@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: can i call pascal procedures from c?
References: <3c79fb29 DOT 17977169 AT news DOT westnet DOT com DOT au>
Lines: 25
Date: Tue, 26 Feb 2002 12:04:34 GMT
NNTP-Posting-Host: 12.90.169.159
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc05-news.ops.worldnet.att.net 1014725074 12.90.169.159 (Tue, 26 Feb 2002 12:04:34 GMT)
NNTP-Posting-Date: Tue, 26 Feb 2002 12:04:34 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Josh wrote:
> 
> I have just found out that I have to use pascal to program a robotic
> arm for my robotics class. Can I call pascal procedures from C, or is
> there someway i can convert them? Can I compile the pascal functions
> into object files and link them into a C program at runtime?
> 
> Someone else told me that in most enviroments gpc and gcc will be
> compatible, since they use the same back ends. Can anyone confirm
> this?
> 
> I would like to do as little pascal as possible :)

If you want accuracy and correctness in your coding you should
reverse that.

For DJGPP, just make sure that gpc is based on the same gcc you
are using.  2.953 is probably the most compatible.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   (Remove "XXXX" from reply address. yahoo works unmodified)
   mailto:uce AT ftc DOT gov  (for spambots to harvest)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019