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

Home » Public Forums » archive » Pros & cons of methods 1) DLM and 2) Call_External of calling C from IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Pros & cons of methods 1) DLM and 2) Call_External of calling C from IDL [message #93480 is a reply to message #93477] Mon, 01 August 2016 06:32 Go to previous messageGo to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On 7/31/16 3:09 PM, neil.a.salmon@gmail.com wrote:
> Could anyone please summarize the pros and cons of using the two
> different methods 1) DLM and 2) Call_External of calling C routines
> from IDL. I'm using IDL Version 6.0. Many thanks, neil

If you go with CALL_EXTERNAL, I would recommend an IDL wrapper routine
that checks the arguments. The wrapper routine can accept keywords and
hide the C/Fortran style API of the external call.


CALL_EXTERNAL

Pros:
- fairly easy
- doesn't require an C coding or knowing the IDL C API

Cons:
- ugly, brittle call
- no keywords
- C/Fortran style API, not a typical IDL calling style


DLM

Pros:
- can make a native style routine (this is how IDL is extended by
Harris engineers)
- access to IDL C API: keywords, data checking macros, variable
number of parameters, etc.

Cons:
- requires knowledge of C and the IDL C API (significant learning curve)
- requires a fair amount of C boilerplate code

Mike
--
Michael Galloy
www.michaelgalloy.com
Modern IDL: A Guide to IDL Programming (http://modernidl.idldev.com)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: cgcontour and cgcolorbar irregular levels
Next Topic: Code for network analyses

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

Current Time: Fri Oct 10 22:51:13 PDT 2025

Total time taken to generate the page: 0.56199 seconds