[Scilab-Dev] How to list every variables inside the SciLab stack ?
Collette Yann
ycollet at freesurf.fr
Thu May 21 15:10:07 CEST 2009
You can use the SciString function (see in stack-c.h):
/** Used for calling a scilab function by its name **/
#define SciString(ibegin,name,mlhs,mrhs) \
if( ! C2F(scistring)(ibegin,name,mlhs,mrhs,(unsigned
long)strlen(name))) return 0;
YC
Vincent Lejeune a écrit :
> Hi,
>
> is there a way to call "who('local')" straight from C code or do I
> have to use scirun function ?
>
> --------------------------------------------------
> From: "Collette Yann" <ycollet at freesurf.fr>
> Sent: Thursday, May 21, 2009 2:34 PM
> To: <dev at lists.scilab.org>
> Subject: Re: [Scilab-Dev] How to list every variables inside the
> SciLab stack ?
>
>> Vincent Lejeune a écrit :
>>> Hi,
>>> I was wondering if there was a way to list the content of the
>>> stack, in C, ie functions like "get_from_stack" and
>>> "get_next_from_stack" or something like that.
>>> When I have a memory error from the GPU side, I'd like to have a
>>> look at every pointer from the stack. I would have a custom stack of
>>> my own, containing every pointer holding a reference to a matrix in
>>> GPU memory. To be able to look in the stack would allow me to free
>>> unecessary matrix that eat space on the GPU.
>> I was wondering if such a thing could be done via the function
>> scistring (in stack-c.h) and call the scilab function "who('local')"
>> and "who('global')"
>>
>> YC
>>
>
>
More information about the dev
mailing list