I want a simple C method to be able to run hex bytecode on a Linux 64 bit machine. Here\'s the C program that I have:
char code[] = \"\\x48\\x31\\xc0\"; #in
You need to include the assembly in-line via a special compiler directive so that it'll properly end up in a code segment. See this guide, for example: http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html