IDL --> C++ ? [message #32648] |
Thu, 24 October 2002 13:18  |
Robert[1]
Messages: 3 Registered: October 2002
|
Junior Member |
|
|
Hi folks,
is there any application out there to translate IDL source code to C++
source code ? Even buggy solutions are welcome ,) ...
If there is no possibility right now, i'm going to programm eigher a full
freatured ( free ! ) translator or a set of classes/ librarys that'll allow
easy rewriteing any IDL application within C++ . ( helping hands and minds
are more then welcome... )
thank you for reading and for any response,
Robert
|
|
|
Re: IDL --> C++ ? [message #32708 is a reply to message #32648] |
Tue, 29 October 2002 04:12   |
cees
Messages: 7 Registered: January 2002
|
Junior Member |
|
|
Robert wrote:
> Hi folks,
>
> is there any application out there to translate IDL source code to C++
> source code ? Even buggy solutions are welcome ,) ...
> If there is no possibility right now, i'm going to programm eigher a full
> freatured ( free ! ) translator or a set of classes/ librarys that'll allow
> easy rewriteing any IDL application within C++ . ( helping hands and minds
> are more then welcome... )
>
> thank you for reading and for any response,
>
> Robert
Ehhh,
seems like an awfull lot of work to me.
Writing a translator for IDL source-code to C++ isn't impossible.
(Even the weak/strong type issues can be solved.)
But how do you plan to include the "internal" IDL-functions ?
(like plot, surface, where etc...)
I think it's a waste of energy and while I see the advantages of a
IDL->C++ translator, rewriting IDL isn't the solution I think.
There are other free/open source alternatives to IDL out there (though I
haven't tried/used them). I think it's easier to adapt them.
Regards,
Cees
|
|
|
Re: IDL --> C++ ? [message #32746 is a reply to message #32708] |
Mon, 04 November 2002 14:35  |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
> Robert wrote:
>
>> Hi folks,
>> is there any application out there to translate IDL source code to C++
>> source code ? Even buggy solutions are welcome ,) ... If there is no
>> possibility right now, i'm going to programm eigher a full freatured (
>> free ! ) translator or a set of classes/ librarys that'll allow easy
>> rewriteing any IDL application within C++ . ( helping hands and minds
>> are more then welcome... )
>>
>> thank you for reading and for any response,
>> Robert
My 2 cents.
I think you could do an automatic translation of about 20% of IDL
source code without too much of a problem. The remainder I think
would take about 10 man years (uh.. human years, ..uh.. hu-person years....
uh... hu-per-offspring years?...).
At which time you could start to test the code. Add another 15 man years
(you'll want to run the translator on all idl routines and many combinations
thereof).
One problem would be updating your translator every year or so when a
new version of IDL comes out. Ideally, the user would be able to select
what version of IDL source code would be translated.
I'd be interested to see an "idl source code to C++ translation"
just merely of histogram, where, sort, uniq, rebin (and the scientific
formats routines too, HDf, NetCDF). Please post them to this newsgroup.
When you get those finished, maybe you can start your project. :)
Cheers,
bob stockwell
PS It would probably be easier to grab the machine instructions out
of memory and decompile it into c code. Then translate that into C++
object oriented code.
|
|
|