Re: On-the-fly compilation of routines [message #63323 is a reply to message #63322] |
Thu, 06 November 2008 08:00   |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
gsever schrieb:
> Hello,
>
> Thanks for your inputs.
>
> Could you please elaborate a little more your yes answers?
try out the example at bottom and read the messages in your log window.
That's how it works.
cheers
Reimar
>
> On Nov 6, 2:57 am, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
>> gsever schrieb:
>>
>>> Hello,
>>> I would like to know whether it is possible to compile a routine while
>>> I am already running my main IDL program?
>> yes
>>
>>> To illustrate more this, I will explain my intention a bit more. We
>>> have a powerful IDL-based data analysis tool in our atmospheric
>>> sciences department to analyze airborne acquired data. I am currently
>>> working on a spectrum plot routine of the this tool-suite to make
>>> small modification and learning purposes. I successfully debug the
>>> routines from within the IDL Workbench, but whenever I make a change
>>> on the program or wanted to set a new breakpoint I have to restart the
>>> program and compile all the routines. My question is again, is there a
>>> way to update my current routine in a way to see the changes are going
>>> to be reflected without restarting and compiling everything?
>> yes
>>
>>
>>
>>> Another point is, can we compile only the recently changed routines in
>>> the beginning of each compilation process?
>> yes
>>
>>
>>
>>> I appreciate your comments on these issues.
>>> Thank you again.
>> I have no idea how you organize your routines but there are common rules.
>>
>> a) use one file per routine
>> b) name the file name of the file exactly the same as your routine
>> b.a) use the extension .pro
>> c) use always lower case file names.
>> d) make sure your file are saved in the the idl search path, check
>> !path
>>
>> e) file a bug report if it does not behave (you already doing so)
>>
>> if not a) make sure the last routine in the file is the one used for the
>> file name.
>>
>> For example just open the ide and call print, mean(findgen(10)).
>> mean is a idl source function. You can open it by .edit mean on the idl
>> input line.
>>
>> cheers
>> Reimar
>
|
|
|