comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Automatically Compiling IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Automatically Compiling IDL [message #5752] Fri, 16 February 1996 00:00
James Tappin is currently offline  James Tappin
Messages: 54
Registered: December 1995
Member
Justin Baker <justinb@bom.gov.au> wrote:
> I am trying to write a simple routine to automatically compile all of my
> IDL routines for a single application and then save the compiled result.
>
> I want to do this so that I can use an XDR format file
> instead of having to re-compile every routine each time I run my
> application.
>
> I have tried something like the following :
>
> pro compileall
> .compile myprint mydisplay mycalc mygui
> save, filename='myprog.dat', /routines
> end
>
> Unforunately, when I try and run "compileall", IDL doesn't understand
> the .compile command.
>
> Is it possible to do what I want from a procedure (or batch file), or do
> I have to do the above interactively ?
>
> Thanks in advance,
> Justin.
>
>
> --
> Justin Baker
> Bureau of Meteorology
> Melbourne
> Australia
> Email: justinb@bom.gov.au

A batch file will do the job you want. Just create a file with the list of
names each preceded by ".r" and the use @<filename>

--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@star.sr.bham.ac.uk | University of Birmingham | -- \/` |
| Ph: 0121-414-6462. Fax: 0121-414-3722 | |
+----------------------------------------------------------- --+---------+
Re: Automatically Compiling IDL [message #5761 is a reply to message #5752] Thu, 15 February 1996 00:00 Go to previous message
Ken Knighton is currently offline  Ken Knighton
Messages: 44
Registered: May 1995
Member
Justin Baker <justinb@bom.gov.au> wrote:
> I am trying to write a simple routine to automatically compile all of my
> IDL routines for a single application and then save the compiled result.
>
> I want to do this so that I can use an XDR format file
> instead of having to re-compile every routine each time I run my
> application.
>
> I have tried something like the following :
>
> pro compileall
> .compile myprint mydisplay mycalc mygui
> save, filename='myprog.dat', /routines
> end
>
> Unforunately, when I try and run "compileall", IDL doesn't understand
> the .compile command.
>
> Is it possible to do what I want from a procedure (or batch file), or do
> I have to do the above interactively ?

You can use a batch file, for example:

;mycompile.bat
;
;Compile all of the routines used in my application and save them to
;a .XDR file.

COMPILE myprint mydisplay mycalc mygui

SAVE, /ROUTINES, FILENAME='myprog.xdr'

EXIT


Then you can execute this file by:

IDL mycompile.bat

or

IDL> @mycompile.bat

To execute the program that has been compiled you can make another
batch file:

;myprog.bat
;
;Load and execute my program

RESTORE, 'myprog.xdr' ;Restore the compiled routines
mygui ;Execute the procedure that starts
;everything up
EXIT ;Exit IDL when everything is done

This can be executed in the same manner as above.

I hope this helps.

Ken Knighton knighton@gav.gat.com knighton@cts.com
General Atomics
San Diego CA
Re: Automatically Compiling IDL [message #5762 is a reply to message #5761] Wed, 14 February 1996 00:00 Go to previous message
Robert Moss is currently offline  Robert Moss
Messages: 74
Registered: February 1996
Member
What you want to use are the RESOLVE_ROUTINE and RESOLVE_ALL procedures,
which allow you to compile routines from within a procedure or function.
See the online documentation for more information.

Robert Moss, Ph.D.
Texaco Inc.
mossrm@texaco.com

Justin Baker wrote:
>
> I am trying to write a simple routine to automatically compile all of my
> IDL routines for a single application and then save the compiled result.
>
> I want to do this so that I can use an XDR format file
> instead of having to re-compile every routine each time I run my
> application.
>
> I have tried something like the following :
>
> pro compileall
> .compile myprint mydisplay mycalc mygui
> save, filename='myprog.dat', /routines
> end
>
> Unforunately, when I try and run "compileall", IDL doesn't understand
> the .compile command.
>
> Is it possible to do what I want from a procedure (or batch file), or do
> I have to do the above interactively ?
>
> Thanks in advance,
> Justin.
>
> --
> Justin Baker
> Bureau of Meteorology
> Melbourne
> Australia
> Email: justinb@bom.gov.au

**********************************************************
This does not necessarily reflect the views of Texaco Inc.
**********************************************************
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: more - disk space allocation problem
Next Topic: Help with WIDGET_TEXT (non-) events

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:50:05 PDT 2025

Total time taken to generate the page: 0.00996 seconds