title: Removing the prologue of a function written in pure assembly
body: <p>I am using Delphi 2010. Is it possible to tell Delphi to not generate a prologue for a function? I'm writing some pure assembly functions like this:</p>
  
  <pre><code>procedure SomeAssembly; stdcall;
  begin
      asm
          ...
      end;
  end;
  </code></pre>
  
  <p>and I would like to tell Delphi not to generate a prologue and epilogue for this function, like C++'s <code>__declspec(naked)</code> feature.</p>
  
  <p>And so no one wastes their time, I don't need help getting these functions to work <em>with</em> the prologue; I can already do that. It's just a large inconvenience and will make maintenance an huge hassle. I'll have to manually inspect the prologues generated by the compiler to see their length, and if that changes, my program will crash.</p>
  
  <p>I also know I can write the function as a series of bytes in a byte array, but that would be even worse than having to go find the length of Delphi's prologue.</p>