[llvm-bugs] [Bug 48112] New: Linking against Watcom code

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 8 16:48:38 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48112

            Bug ID: 48112
           Summary: Linking against Watcom code
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: crosserbackup at gmail.com
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Is it possible to officially add the Watcom calling convention to LLVM and
Clang in order to support calling code from legacy libraries and DLLs without
any inline assembly hacks to pass parameters correctly?

Basically the issue is that parameters are passed left-to-right into EAX, ECX,
EDX, and EBX, then everything else right-to-left onto the stack. Using
__fastcall or __stdcall doesn't help either, even though the conventions behave
pretty much like Watcom's.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201109/f872a77e/attachment.html>


More information about the llvm-bugs mailing list