[LLVMdev] Adding a stack probe function attribute

John Kåre Alsaker john.mailinglists at gmail.com
Wed Aug 6 08:34:49 PDT 2014


I updated http://reviews.llvm.org/D4717 and also wrote an __probestack
implementation:
https://github.com/Zoxc/compiler-rt/compare/llvm-mirror:master...stprobe

Which instruction would be the preferable one to probe with? I used OR
since that's what GCC/libgcc does, but I don't see why that would be better
than a write.


On Tue, Aug 5, 2014 at 7:34 PM, Reid Kleckner <rnk at google.com> wrote:

> On Tue, Aug 5, 2014 at 8:53 AM, John Kåre Alsaker <
> john.mailinglists at gmail.com> wrote:
>
>> Would the __probestack functions be a suitable addition to compiler-rt?
>> Does it already have __chkstk or is that provided by something else on
>> Windows? I noticed that libgcc implemented them in cygwin.S.
>>
>
> It seems reasonable to put them in compiler-rt/lib/builtins.
>
> I don't think anyone is currently using compiler-rt's builtins on Windows,
> so it doesn't have __chkstk. Typically that is provided by the Cygwin,
> MinGW, or MSVC C runtime.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140806/1ccbb7aa/attachment.html>


More information about the llvm-dev mailing list