Fast delegates in C++11/14/...

Hello all,

I am working on : https://github.com/mamedev/delegates/ so far managed to get it run on ARM and ARM64 (before it was possible to run it just on Intel platform). Was pointed by Chandler Carruth to ask this question here better.

Is there any document describing member function pointers and memory organisation for it per platform since there seems to be a different meaning at least on Intel and ARM ?

Regards,
Miodrag

Hi Miodrag,

Is there any document describing member function pointers and memory
organisation for it per platform since there seems to be a different meaning
at least on Intel and ARM ?

These are the two documents:

AArch32: Documentation – Arm Developer
AArch64: Documentation – Arm Developer

Both delegate to the Itanium C++ ABI with some twists. For member
function pointers, I think the virtual/non-virtual bit is just shunted
onto the "this" adjustment (because the low bit of the code pointer
decides whether the function is ARM/Thumb in 32-bit mode so isn't
freely modifiable).

Cheers.

Tim.

Hello Tim,

Thanks for this documents a lot

Will check.

Regards,
Miodrag