delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/14/12:07:10

Message-Id: <200009141606.LAA19381@darwin.sfbr.org>
Date: Thu, 14 Sep 2000 11:07:42 -0500 (CDT)
From: Jeff Williams <jeffw AT darwin DOT sfbr DOT org>
Subject: pass C source to program binary?
To: djgpp AT delorie DOT com
MIME-Version: 1.0
X-Mailer: dtmail 1.3.0 @(#)CDE Version 1.3.4 SunOS 5.7 sun4u sparc
Reply-To: djgpp AT delorie DOT com

Is there a obvious technique for passing the source code for a small C
function (e.g., `for (i=1;i<=N;i++) y[i]=foo(x[i]);'), which might be in
a file or passed via command-line, to an already-compiled C program and
have that program be able to interpret and use the function internally?

I'm looking for a way to give a program some extra flexibility
without requiring the user to write various custom C functions and
then re-compile/re-link with the main program.

TIA---jtw

- Raw text -


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