Subject: | |
From: | |
Reply To: | |
Date: | Thu, 21 Mar 2002 09:10:26 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi all!
I've lately noticed quite a number of people on the list
mentioning
the need for an SPL to C or C++ converter.
We have almost completed work on a module in our
Transport migration tool that
performs such a conversion.
Since Transport already converts TAL to C (The Tandem
equivalent of SPL),
modifying the sytem for SPL syntax and structures was
straightforward. Actually,
TAL is a much richer language than SPL, so SPL was
almost a subset.
Recall that the founders of Tandem were some engineers
from HP...
One of the things that I really like about our
conversion tool is that comment
placement is maintained in the new code as much as
possible. For example,
procedure init'code(source'idx)
int source'idx;
begin
<< Some code to initialize
This won't take long >>
byte array in'buff(0:79);
source'idx := 5;
move in'buff := "foo"; << standard response >>
end;
becomes
function init_code(int source_idx)
{
/* Some code to initialize
This won't take long */
char in_buff[80];
source_idx = 5;
memcpy(in_buff, "foo"); // standard response
}
This allows for nice maintainable code
afterwards...assuming, of course, that
the code was nice and maintainable beforehand. :-)
We expect to have our SPL to C++ conversion module ready
shortly.
We'll see a few of you at the e3000 Symposium in a
couple of weeks!
Regards,
Ken Robertson
R & D Development
AD Technologies www.adtech.com
Phone: 514.858.6181 x 236
Toll-Free: 800.667.8903
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|