Welcome, Guest. Please login or register.

Author Topic: Pascal decoder?  (Read 4935 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Minuous

Re: Pascal decoder?
« on: October 23, 2006, 05:08:59 AM »
There are no decompilers available for Amiga.

This is one of the more glaring holes in the Amiga software range.
 

Offline Minuous

Re: Pascal decoder?
« Reply #1 on: October 24, 2006, 04:16:53 AM »
Better would be to ask if he could write and release a decompiler. Rather than to ask him to decompile 43K of code by hand :-)
 

Offline Minuous

Re: Pascal decoder?
« Reply #2 on: October 24, 2006, 04:23:40 PM »
Then just use an MS-DOS decompiler.

Of course you will end up with C source rather than Pascal source, but that is actually an improvement :-)
 

Offline Minuous

Re: Pascal decoder?
« Reply #3 on: October 24, 2006, 05:43:02 PM »
If you use a disassembler, you'll get x86 source.

But if you use a decompiler you'll get source in a high-level language.

See http://en.wikipedia.org/wiki/Decompiler

Decompiler and disassembler aren't the same. Disassembler stops when it has created assembly code. Decompiler keeps processing and ends up with high-level language source. Of course there are many disassemblers on the Amiga but no decompilers AFAIK.

Most of the decompilers I've heard about produce C output, but in theory you could make one that produced Pascal output.
 

Offline Minuous

Re: Pascal decoder?
« Reply #4 on: October 24, 2006, 06:46:37 PM »
Yeah, they are far from perfect, but they automate some of the process: less hand-editing required to convert from assembler to C than if you did the whole thing by hand.

I wrote a program (Aminet:dev/cross/Annotate.lha) that comments Signetics 2650 assembly source with pseudo-C equivalents...a similar principle but not exactly a decompiler in the strictest sense.