caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Nyberg <rnyberg@it.su.se>
To: George Necula <necula@eecs.berkeley.edu>
Cc: "'caml-list@inria.fr'" <caml-list@inria.fr>
Subject: Re: [Caml-list] Announcing CIL: Infrastructure and tools for C program analysis a nd transformations
Date: Thu, 22 Aug 2002 16:58:00 +0200	[thread overview]
Message-ID: <20020822145800.GH1899@gromit.it.su.se> (raw)
In-Reply-To: <4E06A937DADC3842ACE4D3A1096A9EAC567D63@JANUS.eecs.berkeley.edu>

On Tue, Aug 20, 2002 at 12:43:55PM -0700, George Necula wrote:
>  
>  We have released a stable version of CIL. It consists of a complete C
> parser (both for ANSI C and also the GCC and Microsoft Visual C extensions),
> pretty-printer and an intermediate language that hides most of the dark
> corners of the C language. This allows you for example to implement a
> Stackguard instrumentation for your programs in about 80 lines of code and
> apply it to ugly code such as the Linux kernel modules. CIL can impersonate
> both the GCC and MSVC compilers allowing you to use your existing Makefiles
> and can also merge your entire program into one source file for a quick
> whole-program analysis.
> 
>  CIL has been tested on many millions of lines of code, including the Linux
> kernel and GIMP.
> 
>  More information, a manual, ocamldoc API documentation and the distribution
> can be found at http://www.cs.berkeley.edu/~necula/cil.
> 
>  George.

Nice :)

For those like me who'd like to try it on FreeBSD I've made some
patches. The configure script could really be better on supporting
different platforms.

Don't forget to use GNU make!

	-Richard

--- Makefile    Tue Aug 20 20:49:39 2002
+++ rny-Makefile        Thu Aug 22 16:45:56 2002
@@ -2,4 +2,4 @@
 setup: setup
 %: 
        if ! test -f Makefile.cil ;then echo Run configure first ;fi
-       make -f Makefile.cil $*
+       $(MAKE) -f Makefile.cil $*

--- configure.in        Tue Aug 20 20:49:39 2002
+++ rny-configure.in    Thu Aug 22 16:46:11 2002
@@ -105,7 +105,7 @@
   diagnostic "major is $major"
   # minor: numbers after the .
   # (the outer level of bracket-quotation protects the inner brackets)
-  [minor=`echo $ver | sed 's/^.*\.\([0-9]\+\).*$/\1/'`]
+  [minor=`echo $ver | sed 's/[^.]*\.//'`]
   diagnostic "minor is $minor"
 
   # I would think autoconf would already have a facility for doing
@@ -156,6 +156,8 @@
         ;;
     linux)
         ;;
+    freebsd)
+       ;;
     *)
       AC_MSG_ERROR([
         Unsupported Perl port $perlport -- sorry.
@@ -267,7 +269,7 @@
 # $target is typically processor-vendor-os
 case "$target" in
   # linux
-  *86*linux*)
+  *86*linux*|*86*freebsd*)
     AC_MSG_RESULT(configuring for linux/x86)
 
     ARCHOS=x86_LINUX

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      reply	other threads:[~2002-08-22 14:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-20 19:43 George Necula
2002-08-22 14:58 ` Richard Nyberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020822145800.GH1899@gromit.it.su.se \
    --to=rnyberg@it.su.se \
    --cc=caml-list@inria.fr \
    --cc=necula@eecs.berkeley.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).