title: Equivalent GCC -mpush-args flag for Clang
body: <p>I'm trying to call a C function from some x86 assembly. The C code was compiled with Clang:</p>
  <pre><code>Apple clang version 12.0.0 (clang-1200.0.32.2)
  Target: x86_64-apple-darwin19.6.0
  Thread model: posix
  InstalledDir: /Library/Developer/CommandLineTools/usr/bin
  </code></pre>
  <p>I'm depending on pushing function arguments onto the stack for calling, but clang doesn't seem to directly allow for functions to accept parameters from the stack. Instead, it uses a mix of stack offsets and register moves to manipulate the parameters. For GCC, there is the flag <code>-mpush-args</code> that allows you to provide arguments through the stack, and nothing else. Since I'm using Clang this flag isn't available. I have done around an hour of research to find an equivalent flag for Clang, but I haven't been able to find one. Does anyone know if there is an equivalent flag for Clang?</p>
  <p>Here are my arguments to the code:
  <code>-mstackrealign -fverbose-asm -S -masm=intel -O0</code></p>