Re: [julia-users] Access stack frame address?

2016-03-31 Thread Laurent Bartholdi
Thanks a lot! That works perfectly! Closed. On Thu, Mar 31, 2016, 14:08 Yichao Yu wrote: > On Thu, Mar 31, 2016 at 7:52 AM, Yichao Yu wrote: > > On Thu, Mar 31, 2016 at 5:23 AM, Laurent Bartholdi > > wrote: > >> Thanks for the quick reply! Yes, that would be wonderful. > >> > >> I want to int

Re: [julia-users] Access stack frame address?

2016-03-31 Thread Yichao Yu
On Thu, Mar 31, 2016 at 7:52 AM, Yichao Yu wrote: > On Thu, Mar 31, 2016 at 5:23 AM, Laurent Bartholdi > wrote: >> Thanks for the quick reply! Yes, that would be wonderful. >> >> I want to interface to a library that has its own garbage collection; that >> library walks the stack to find potentia

Re: [julia-users] Access stack frame address?

2016-03-31 Thread Yichao Yu
On Thu, Mar 31, 2016 at 5:23 AM, Laurent Bartholdi wrote: > Thanks for the quick reply! Yes, that would be wonderful. > > I want to interface to a library that has its own garbage collection; that > library walks the stack to find potential objects that must be kept alive. > Therefore, all calls t

Re: [julia-users] Access stack frame address?

2016-03-31 Thread Laurent Bartholdi
Thanks for the quick reply! Yes, that would be wonderful. I want to interface to a library that has its own garbage collection; that library walks the stack to find potential objects that must be kept alive. Therefore, all calls to that library must be done in the form library_global_StackBott

Re: [julia-users] Access stack frame address?

2016-03-30 Thread Yichao Yu
On Mar 30, 2016 6:22 PM, "Yichao Yu" wrote: > > > On Mar 30, 2016 6:21 PM, "Laurent Bartholdi" wrote: > > > > Hi, > > Is there a way to obtain the address of the current stack frame (the ebp register on x86 processors)? > > > > In GCC, there's the bultin primitive __builtin_frame_address() that d

Re: [julia-users] Access stack frame address?

2016-03-30 Thread Yichao Yu
On Mar 30, 2016 6:21 PM, "Laurent Bartholdi" wrote: > > Hi, > Is there a way to obtain the address of the current stack frame (the ebp register on x86 processors)? > > In GCC, there's the bultin primitive __builtin_frame_address() that does precisely that. Why do you want this? > > Many thanks i

[julia-users] Access stack frame address?

2016-03-30 Thread Laurent Bartholdi
Hi, Is there a way to obtain the address of the current stack frame (the ebp register on x86 processors)? In GCC, there's the bultin primitive __builtin_frame_address() that does precisely that. Many thanks in advance, Laurent