This examples will only work if you disable address space layout randomization on your system.
WARNING This will put your system in danger, so do this only ony a training machine! You have been warned!
First example demonstrates simply the C calling convention.