shyam@atc1.UUCP (Shyam Mittur) (12/01/90)
I have a requirement to take lots (many hundreds of thousands of lines) of C code and crunch it down to the smallest size possible that would build correctly. Among the things I anticipate doing are: Stripping off comments and blank lines, rearranging indentation, replacing variable and function names by short but unique names, and so on. I have no desire to reinvent the wheel. Is there such a filter that anyone out there knows of? Source availability would be important. E-Mail preferred, I will post a summary of responses if there is interest. Shyam Mittur shyam@atc.com, uunet!atc1!shyam
john@newave.UUCP (John A. Weeks III) (12/03/90)
In article <111@atc1.UUCP> shyam@atc1.UUCP (Shyam Mittur) writes: > I have a requirement to take lots (many hundreds of thousands of lines) of > C code and crunch it down to the smallest size possible that would build > correctly. Among the things I anticipate doing are: Stripping off comments > and blank lines, rearranging indentation, replacing variable and function > names by short but unique names, and so on. Out of curiousity, why would you want to do such a thing? I can understand wanting to shroud a program, but what you are proposing to do will result in code that is difficult to maintain and possibly confusing to the compiler, not to mention the risk of introducing new subtle bugs and the rath of Henry's 8th commandment. -john- -- =============================================================================== John A. Weeks III (612) 942-6969 john@newave.mn.org NeWave Communications ...uunet!rosevax!tcnet!wd0gol!newave!john ===============================================================================