Re: Linking code into IDL [message #6827] |
Tue, 27 August 1996 00:00 |
Arno F. Granados
Messages: 8 Registered: August 1996
|
Junior Member |
|
|
> Claus Hammerl wrote:
>
> Hi there,
>
> I wrote an idl application and want it to be used by others, but I
> don't want others to look at the source code ... is there any
> possibility to do a compilation and run the compiled code or do
> I always have to run IDL and read the source code to run it ...
>
> thanks in advance
>
> claus hammerl
> hammerl@physik.uni-augsburg.de
if your main goal is to hide the source code, you can "save" a compiled
IDL binary that others can restore and run. All they get is the binary,
so your source code is effectively hidden.
Assuming you have an IDL procedure called my_prog.pro, you would do
the following to save the binary:
IDL> .r my_prog.pro
IDL> resolve_all
IDL> save,/routines,filename='my_prog.sav'
to run your code, another user would type:
IDL> restore,filename='my_prog.sav'
IDL> my_prog
Arno
granados@possys.com
|
|
|