DragonFly kernel List (threaded) for 2004-11
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: learning dragonfly or C...
Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx> wrote:
> :> struct fubar *blah;
> :> struct fubar *nblah;
> :>
> :> getmafubar(&nblah);
> :> blah = nblah;
> :>
> :> blech = blah->this + blah->that - somefunction(blah);
> :> and_other_random_things_using(blah);
> :>
> :> blah blah blah...
> :>
> :If it's not to protect *blah memory from illegal getmafubar() data,
> :then my next guess is a debugging trap, so if getmafubar() fails, &blah
> :will retain state data from before the error? (not so subtle hint at
> :checkpt.c line 487)
> :
> :// George
> :
>
> Nope. Ok, I'll tell you... it's so the compiler can optimize 'blah'
> into a register.
I thought You would fear that vp might get clobbered.
Gunther
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]