get size of function
Trass3r
un at known.com
Wed Aug 31 04:41:21 PDT 2011
Am 31.08.2011, 12:05 Uhr, schrieb maarten van damme
<maartenvd1994 at gmail.com>:
> Am I sure those functions aren't shift around during optimization?
No. It's just an ugly hack and likely to go up in flames.
Also what you try could only work with PIC but even then...
> for now the function is working like a charm. int memory I can see that d
> makes function size's multiples of four and fills the remaining bytes
> with
> cc's. is this coincidence and if not, why is this?
http://stackoverflow.com/questions/2863408/why-are-functions-loaded-at-aligned-addresses-in-x86-linux-for-elf-executables
More information about the Digitalmars-d-learn
mailing list