Re: How do I prevent a function from being optimized out?
Re: How do I prevent a function from being optimized out?
- Subject: Re: How do I prevent a function from being optimized out?
- From: Brian Dantes <email@hidden>
- Date: Wed, 13 Apr 2005 15:27:11 -0700
No, you do not need to force a flat namespace with mach_override, that's the
beauty of it. It is a bit scary when you realize what it's doing - but hey
you'll learn to live with it. ;-> Now, if you want to override something in
a program you can't link against (ala the Linux LD_PRELOAD trick), you'll
have to wait for Tiger to be able to do that.
-Brian
> From: Andrew Gallatin <email@hidden>
> Date: Wed, 13 Apr 2005 18:21:50 -0400 (EDT)
> To: Brian Dantes <email@hidden>
> Cc: <email@hidden>
> Subject: Re: How do I prevent a function from being optimized out?
>
>
> Brian Dantes writes:
>> If you have control over the application, a much better solution is
>> mach_override.
>>
>> <http://www.rentzsch.com/mach_override/>
>>
>
> Actually, that is a good idea. I wasn't aware of this...
> All we really need to do is to call a function from
> deallocate_pages() with the address and the size. I suppose
> we would still need to force a flat namespace.
>
> If I can't figure anything else out, I may try this.
> Testing a totally new way of doing this will not be fun though :(
>
> Thanks a lot for the pointer!
>
> Drew
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden