title: How to thunk a function in x86 and x64? (Like std::bind in C++, but dynamic)
body: <p>How do I thunk an arbitrary function with an arbitrary (fixed) number of arguments, on x86 and x64?</p>
  
  <p>(I don't need floating-point, SSE, or the like. The arguments are all integers or pointers.)</p>