Writing a 'trampoline' in assembly for profiling (tadeuzagallo.com)