<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 12px; border-collapse: collapse; ">I mean pointers to functions unfortunately. I guess this will be more interesting that I thought. Any specific advice?<div>
<br></div><div>Thank again</div></span><br><div class="gmail_quote">On Wed, Jun 1, 2011 at 5:55 PM, John McCall <span dir="ltr"><<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Jun 1, 2011, at 12:48 PM, ret val wrote:<br>
> I would like to be able to increase the size allocated for normal function pointers so they each fill a entire (virtual memory) page.<br>
<br>
</div>Do you mean that you want each *function* to occupy its own<br>
VM page, or do you really mean that you want function *pointers*<br>
to grow from 4-8 bytes apiece to 4KB?<br>
<br>
The best way of doing the former is to specify a huge alignment for<br>
the function. The latter is likely to break a lot of code that assumes<br>
(yes, technically contrary to the standards) that function pointers<br>
can be losslessly cast to, say, void*.<br>
<font color="#888888"><br>
John.<br>
</font></blockquote></div><br>