Bug#325371: ITP: binfmtc -- a binfmt_misc hook for running C programs as scripts
Hello,
I tried sending the following to debian-devel but it bounced for some
reason:
-------- Original Message --------
Subject: Re: Bug#325371: ITP: binfmtc -- a binfmt_misc hook for running
C programs as scripts
Date: Mon, 29 Aug 2005 14:43:40 -0400
From: Kevin B. McCarty <kmccarty@princeton.edu>
To: debian-devel@lists.debian.org
Junichi Uekawa wrote:
> I'm planning on uploading binfmtc to Debian.
> It is a binfmt_misc hook that allows using
> C source as if they were scripts.
>
> It invokes gcc and runs the resulting binary.
>
> I would be interested to know if there is any existing tool that
> does something similar, and also if anyone finds use for
> such system. I personally like using this since it allows
> rapid testing, and C is the scripting language I feel most
> comfortable with.
There is CINT, a C/C++ interpreter. I think it was packaged for Debian
at one time but was later removed as a result of an FTBFS bug on m68k
that was never fixed. It's also a core component of the ROOT data
analysis system.
Here's upstream's web page:
http://root.cern.ch/root/Cint.html
The CINT license (at a quick glance, looks DFSG-free)
http://root.cern.ch/root/Cint.phtml?readme (scroll down a bit)
However I don't immediately see an obvious way to make CINT execute C
code starting with #!/usr/local/bin/cint as if it were a script. (The
problem is apparently that # doesn't mark the start of a comment in the
C language...)
regards,
--
Kevin B. McCarty <kmccarty@princeton.edu> Physics Department
WWW: http://www.princeton.edu/~kmccarty/ Princeton University
GPG: public key ID 4F83C751 Princeton, NJ 08544
Reply to: