<br><br><div class="gmail_quote">2011/8/30 Johannes Pfau <span dir="ltr"><<a href="mailto:spam@example.com">spam@example.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
</div>You could use the same hacks as in C:<br>
Declare another function, make sure their located sequentially in<br>
memory and compare their function addresses to get the size of the first<br>
function (+ potential padding for alignment, but that shouldn't matter).<br></blockquote><div>I think thats the way to go, a sequential function's adress minus the functions address. how can I make sure they're sequentially alligned?<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I do not recommend to do this though, it's a baaaad hack, and I don't<br>
even remember how exactly it worked.<font color="#888888"><br></font></blockquote><div> But better a (dirty) way then no way at all.<br><br>I've also been playing with the idea of writing the function, and trying to compile that one function in a text file and importing at compile time in my main program. Then I can also count the bytes in the file.<br>
sounds an awfull lot of work :p<br></div></div><br>