[LLVMdev] Returning structs on Linux x86

Eli Friedman eli.friedman at gmail.com
Thu Apr 23 22:15:08 PDT 2009


On Thu, Apr 23, 2009 at 7:13 PM, Robin Sommer <robinsommer at web.de> wrote:
> Is this a known limitation of the x86 backend?

If you want ABI compatibility with C code, you have to implement some
knowledge of the ABI rules, which are different between Darwin and
Linux.  Try comparing the output of "clang-cc -emit-llvm -triple
i686-pc-linux-gnu -O2" and "clang-cc -emit-llvm -triple
i386-apple-darwin10 -O2".

-Eli



More information about the llvm-dev mailing list