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

Home » Public Forums » archive » Re: C/C++ conversion to 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: C/C++ conversion to IDL [message #44203 is a reply to message #44201] Tue, 31 May 2005 08:57 Go to previous messageGo to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
Craig Markwardt wrote:
> nasalmon@onetel.net.uk writes:
>
>> Would anybody know if there is there software available to convert
>> programs in C into IDL (i know you can link in C programs to running
>> under IDL)? However, i am more interested in getting shorter, more
>> transparent code which is easier to work with. I obviously want the
>> minimum of hassel in converting the C code into IDL, so i dont want to
>> trawl through this myself converting it.
>
>
> I've always done it painstakingly, by hand. Usually I do a as direct
> a translation as possible, word for word, line for line. FORTRAN is
> the best for this since FORTRAN and IDL are more similar (than say, C
> and IDL). After that, I look for optimization opportunities.


I don't think there are any translation tools available. Even some of
the simplest C code can do crazy things with memory access, pointers,
shared libraries, etc. It'd be really hard to write a program that
could handle things beyond the basics and make a decent translation from
C to IDL. It'd be hard enough to write a decent C compiler. In this
case the compiler output would be IDL code rather than a binary, but I
digress. The best approach is to painstakingly and thoroughly translate
the code line by line as has already been said. With this you should
have an IDL program that works. Then go back and take care of
optimizations.

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: delete variable name from memory
Next Topic: NEAREST LOCATION _ ARRAY VALUE PROBLEM

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

Current Time: Sat Oct 11 13:09:06 PDT 2025

Total time taken to generate the page: 0.40299 seconds