title: Instantiating a c++ class in x86 (32bit) assembly (Passing a c++ class by copy to a method in assembly)
body: <p>In my project, I have, amongst many other things, to call a c++ method from assembly and to pass a class by copy. It would be quite simple if I could pass it by reference, but I cannot.</p>
  
  <p>I assume it would look something like this:
  create a new instance of said class;
  copy the attributes of the class to the attributes of the new class;
  push a pointer to the new class onto the stack;
  call the method;
  call the destructor of the class that's a copy of the other class.</p>
  
  <p>So the real question is, how do you instantiate a class that was created in c++ in assembly?</p>
  
  <p>Thank you all very much in advance.</p>
  
  <p>Edit: I am working with gcc on a Fedora 14 powered x86 personal computer.</p>