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] Using generated globals in the source code
- Subject: [Frama-c-discuss] Using generated globals in the source code
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- Date: Tue, 10 Jul 2012 07:59:18 +0200
- In-reply-to: <CA+yPOVi81WL_9t8X6d1Zth+wsKocnNTBoNtQz98+dU7OaT9SgA@mail.gmail.com>
- References: <1341814711.12360.33.camel@iti27.informatik.htw-dresden.de> <CA+yPOVi81WL_9t8X6d1Zth+wsKocnNTBoNtQz98+dU7OaT9SgA@mail.gmail.com>
Hello Virgile, yes, I have to inspect the original source to declare appropriate globals and loc1 and loc2 are in the same file. Can I solve the problem by two-pass parsing? A first pass with Kernel.ReadAnnot.Off () generates the globals and writes them to a file defs.h with Cil.d_global. In this case, how do I change Cil.defaultCilPrinter to my out_channel? Then a second pass can include defs.h with Kernel.CppExtraArgs and do any further processing. However, the pretty-printed globals may contain non-ASCII symbols. Can the toolchain handle these? If this works, can I just call Visitor.visitFramacFile (new Plugin.plugin) (Ast.get ()); twice with the corresponding options for each pass? -- Best regards, Boris (Message sent again because yesterday's message didn't arrive)
- Follow-Ups:
- [Frama-c-discuss] Using generated globals in the source code
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Using generated globals in the source code
- References:
- [Frama-c-discuss] Using generated globals in the source code
- From: hollas at informatik.htw-dresden.de (Boris Hollas)
- [Frama-c-discuss] Using generated globals in the source code
- From: virgile.prevosto at m4x.org (Virgile Prevosto)
- [Frama-c-discuss] Using generated globals in the source code
- Prev by Date: [Frama-c-discuss] Using generated globals in the source code
- Next by Date: [Frama-c-discuss] Frama-C Development Tooling (FCDT) plug-in V1.2 Release
- Previous by thread: [Frama-c-discuss] Using generated globals in the source code
- Next by thread: [Frama-c-discuss] Using generated globals in the source code
- Index(es):