Frama-C-discuss mailing list archives
This page gathers the archives of the old Frama-C-discuss archives, that was hosted by Inria's gforge before its demise at the end of 2020. To search for mails newer than September 2020, please visit the page of the new mailing list on Renater.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Frama-c-discuss] patchFile
- Subject: [Frama-c-discuss] patchFile
- From: boris at yakobowski.org (Boris Yakobowski)
- Date: Wed, 11 Apr 2012 20:04:56 +0200
- In-reply-to: <C7C9CF2CAED7624F9C0B900A19A24EEE047208DA@njcorpmb1.dscinjcorp.com>
- References: <C7C9CF2CAED7624F9C0B900A19A24EEE047208DA@njcorpmb1.dscinjcorp.com>
Hi, On Wed, Apr 11, 2012 at 4:20 PM, Wayne Pineault <WPineault at xprt.dsci.com> wrote: > My goal is to analyse C code without modifying the original source code.? I > want to get rid of all the #include <filename.h> directives since Frama-C > value analysis does not work properly with these files included. Not including headers is a bad idea in general. Although Frama-C may parse a code in which a function is used before having been declared, the implicit declaration mechanism present in ANSI C will sometimes lead to subtly broken abstract syntax trees. Are the <filename.h> files you wish to skip those of the standard C library? If so, did you try gcc's option "-nostdinc" (or the equivalent one for your preprocessor); using the headers of your system is almost always a bad idea. You can also try to include the standard library which is packaged by Frama-C (and installed in $SHARE/frama-c/libc), but before doing so, you should really upgrade to Nitrogen. Hope this helps, -- Boris
- Follow-Ups:
- [Frama-c-discuss] patchFile
- From: pascal.cuoq at gmail.com (Pascal Cuoq)
- [Frama-c-discuss] patchFile
- From: WPineault at xprt.dsci.com (Wayne Pineault)
- [Frama-c-discuss] patchFile
- References:
- [Frama-c-discuss] patchFile
- From: WPineault at xprt.dsci.com (Wayne Pineault)
- [Frama-c-discuss] patchFile
- Prev by Date: [Frama-c-discuss] patchFile
- Next by Date: [Frama-c-discuss] Uninitialized variables
- Previous by thread: [Frama-c-discuss] patchFile
- Next by thread: [Frama-c-discuss] patchFile
- Index(es):