Re: [gtk-list] Re: Apprarently simple signal/event question
- From: Paul Carter <carterp acm org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Apprarently simple signal/event question
- Date: Mon, 13 Dec 1999 11:25:01 -0600
Havoc Pennington wrote:
> "Peter Garner" <peter.garner@toward.com> writes:
> >
> > Really? Thanks for the heads up!!!
>
> The return value has to be stored in memory somewhere; if the compiler
> thinks there is no return value when invoking the function pointer it
> doesn't have to make that memory. But if the function being invoked
> has a return value it will put the return value there anyway.
Actually, it's very common for integal return values to be left in a register,
not in memory. So returning a value would not cause memory corruption. For
example, on x86, gcc leaves the return value in the EAX register.
--
Paul Carter [carterp@acm.org] [http://www.comsc.ucok.edu/~pcarter]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]