Re: Kext symbolizing & missing kernel slide
Re: Kext symbolizing & missing kernel slide
- Subject: Re: Kext symbolizing & missing kernel slide
- From: Andrew Keller <email@hidden>
- Date: Fri, 26 Aug 2016 11:59:35 -0400
Am 26.08.2016 um 3:16 vorm. schrieb Quinn The Eskimo! <email@hidden>:On 26 Aug 2016, at 03:21, Andrew Keller < email@hidden> wrote: Is all memory required for all local variables in a given function allocated on the stack immediately upon invoking the function … ? Yes. Well, it’s not /guaranteed/ to be that way—in most situations the exact mechanics of this is up to the compiler—but the general approach taken by most compilers is to adjust the stacker pointer once in the function prologue [1] and leave it there until the function returns.
Should we assume that a static const variable locally declared in a function is never stored on the stack?
void example() { static const char templateData[] = “some example data”; // more work }
Thanks, - Andrew Keller
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden