linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Alexey Zaytsev" <alexey.zaytsev@gmail.com>
To: Josh Triplett <josh@kernel.org>
Cc: linux-sparse@vger.kernel.org
Subject: Re: A few notes on how I see the whole process working.
Date: Mon, 28 Apr 2008 11:12:10 +0400	[thread overview]
Message-ID: <f19298770804280012t4505dc7oc6aba4e78417962b@mail.gmail.com> (raw)
In-Reply-To: <f19298770804241315wca6a214x23a863c6fceb6009@mail.gmail.com>

On Fri, Apr 25, 2008 at 12:15 AM, Alexey Zaytsev
<alexey.zaytsev@gmail.com> wrote:

[...]

>  >  >                 - (maybe something else I've missed?)
>  >
>  >  Most of the things in a sparse "struct symbol" would probably prove
>  >  useful, I suspect.
>  >
>  May be. I'm still not really familiar with the sparse internals.

I still don't buy the bytecode idea, but it seems that the macros are
not actually lost after being pre-processed, which was my main concern
against even thinking about dumping the sparse internal representation
into the generated sparse object files. Still wandering in the dark. Will
look closed when return.

>
>
>  >  Eventually we will probably want something like the linearized
>  >  bytecode.
>  >
>
>  While I generally agree the we need to do something like
>
>  sparse -> intermediate data -> checker
>
>  the intermediate format is a bit unclear to me. It has to be verbose
>  enough to loose no essential information, and still be practical.
>  If by linearized bytecode you mean something like what we get
>  running sparse -ventry, this is clearly not going to work. As an
>  example, suppose you wish to check that local_irqsave() and
>  local_irqrestore() are balanced. This means, the checker actually
>  wants to look at the original source code, not even at the
>  pre-processed C code.
>
>  So, suggestions on the intermediate format are welcome.
>

  reply	other threads:[~2008-04-28  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f19298770804202112hcd32b7ch8c6ef357b9f7344e@mail.gmail.com>
     [not found] ` <480C8856.4030805@kernel.org>
2008-04-24 20:15   ` A few notes on how I see the whole process working Alexey Zaytsev
2008-04-28  7:12     ` Alexey Zaytsev [this message]
2008-04-28 20:29       ` Chris Li

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=f19298770804280012t4505dc7oc6aba4e78417962b@mail.gmail.com \
    --to=alexey.zaytsev@gmail.com \
    --cc=josh@kernel.org \
    --cc=linux-sparse@vger.kernel.org \
    /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).