[PATCH] Bug 18582 - Offset overflow on calling __chkstk and __alloca on x64
benoit.belley at autodesk.com
Thu Jan 29 08:09:14 PST 2015
AFAIU, the code model isn't imposed by the OS. One can use DLLs compiled with either code model on any versions of Windows. One chooses the code model for each DLL depending on whether he's expecting particular sections (.data and .text) of the DLL to be larger than 2^^24 bytes.
See: System V ABI, AMD64 Supplement, http://www.x86-64.org/documentation/abi.pdf, Section 3.5.1
More information about the llvm-commits