|[12 earlier articles]|
|Re: Help on disassembler/decompilers firstname.lastname@example.org (1990-09-10)|
|Re: Help on disassembler/decompilers email@example.com (Mark William Hopkins) (1990-09-10)|
|Re: Help on disassembler/decompilers Jonathan.Bowen@prg.oxford.ac.uk (Jonathan Bowen) (1990-09-13)|
|Re: Help on disassembler/decompilers firstname.lastname@example.org (1990-09-13)|
|Re: Help on disassembler/decompilers td@alice.UUCP (1990-09-13)|
|Re: Help on disassembler/decompilers email@example.com (1990-09-14)|
|Re: Help on disassembler/decompilers firstname.lastname@example.org (1990-09-14)|
|Re: Help on disassembler/decompilers email@example.com (1990-09-15)|
|Re: Help on disassembler/decompilers firstname.lastname@example.org (1990-09-14)|
|Re: Help on disassembler/decompilers email@example.com (1990-09-15)|
|Re: Help on disassembler/decompilers firstname.lastname@example.org (1990-09-16)|
|Re: Help on disassembler/decompilers email@example.com (1990-09-16)|
|Re: Help on disassembler/decompilers firstname.lastname@example.org (1990-09-18)|
|[4 later articles]|
|From:||email@example.com (Hank Dietz)|
|Organization:||Purdue University Engineering Computer Network|
|References:||<HOW.90Sep5173755@sundrops.ucdavis.edu> <firstname.lastname@example.org> <email@example.com>|
|Date:||Fri, 14 Sep 90 16:42:52 -0500|
In article <11326@alice.UUCP> you write:
>firstname.lastname@example.org (R. Kym Horsell @ SUNY Binghamton, NY) says:
>>I have made various attempts at writing assemlber -> HLL translators over
>>the years, mostly inspired by the `beatify' tool that attempts to transform
>>spagetti FORTRAN into structured FORTRAN.
>Wouldn't a `beatify' tool transform Profane Fortran into Blessed Fortran?
>[We could always hope so. -John]
Nope. The key transformation in fixing spaghetti code is an oldie but
goodie called "code straightening." It's usually pretty easy.
However, such transformations are generally not very good at dealing with
comments. Not only are they notoriously bad at creating meaningful new
comments automatically, but they don't even really know what to do with the
comments that were in the original source.
This last problem is rooted in the fact that most languages do not
syntactically group comments with the source code constructs to which they
apply (they are usually implemented as a lexical hack -- removed from the
source before syntax analysis). Further, how does a beautifier know what
the comment refers to -- it would be pretty strange, for example, to retain
a comment about multiplying things when the multiply has been
strength-reduced out of existence?
One might argue that the big problem in programs today isn't unstructured
use of GOTO, but unstructured use of comments.... One of my PhD students
(Eng-Siong Tan) is currently investigating this problem....
Return to the
Search the comp.compilers archives again.