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: Andrew Gallatin <email@hidden>
- Date: Wed, 13 Apr 2005 18:16:35 -0400 (EDT)
Jerry Pendergraft writes:
> Seems like if you provide an object file to the link that provides
> the malloc() entry point (with proper signature), then the linker would
> never bother to search the standard lib for it. Of course gcc has its own
> ideas especially concering malloc ;^)
This is a library itself, and its highly likely somebody else has
already called malloc. The first caller initiates the lazy binding
search, and the linker pulls in the one from libc.
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