ext_8103: (geek)
ext_8103 ([identity profile] ewx.livejournal.com) wrote in [personal profile] ewx 2007-03-12 01:19 pm (UTC)

Inspection of the code shows there's no instruction generated (in a simple test case - the code in question has been rearranged to confuse the profiler less, though the old arrangement is still there in bzr).

I tried a simpler test case and although inspection of the output reveals that no code is generated, the profiler does think the code ran.

        1:    5:int main(void) {
        1:    6:  int x = 99;
        -:    7:
        1:    8:  f();
        1:    9:  x |= 0;
        1:   10:  f();
        1:   11:  return x;
        -:   12:}

So perhaps in this case the profiler is being clever (or stupid in a way that gives superficially more correct results).


Post a comment in response:

(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org