[Scilab-Dev] How to list every variables inside the SciLab stack ?

Allan CORNET allan.cornet at scilab.org
Mon May 25 08:08:55 CEST 2009


Hi,

See SCI/core/includes/getvariablesname.h

char **getLocalVariablesName(int *sizearray,BOOL sorted);

char **getGlobalVariablesName(int *sizearray, BOOL sorted);


Best Regards

Allan

-----Message d'origine-----
De : Vincent Lejeune [mailto:vincent.lejeune at institutoptique.fr] 
Envoyé : jeudi 21 mai 2009 15:06
À : dev at lists.scilab.org
Objet : Re: [Scilab-Dev] How to list every variables inside the SciLab stack
?

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