home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19198 < prev    next >
Encoding:
Text File  |  1993-01-04  |  6.6 KB  |  174 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!psinntp!panix!bergman
  3. From: bergman@panix.com (Mark Bergman)
  4. Subject: Re: Program to convert .EXE to a "C" source file?  I really need one!!
  5. Message-ID: <C0CG28.3p0@panix.com>
  6. Organization: Panix Public Access Internet & Unix, NYC
  7. References: <1993Jan2.203527.27050@news2.cis.umn.edu> <1993Jan4.022241.4493@pony.Ingres.COM>
  8. Date: Mon, 4 Jan 1993 19:13:19 GMT
  9. Lines: 163
  10.  
  11. In article <1993Jan4.022241.4493@pony.Ingres.COM> mikes@Ingres.COM (Mike Schilling) writes:
  12. >From article <1993Jan2.203527.27050@news2.cis.umn.edu>, by dutc0006@student.tc.umn.edu ():
  13. >> In article <1993Jan1.225604.964@blurt.oswego.edu> ch_ind05@blurt.oswego.edu (Greg Fuller (SUNY Oswego, Oswego New York)) writes:
  14. >>>Hello. 
  15. >>>    I am looking for a program that will take a .EXE or .COM file and
  16. >>>convert it into a "C" source file.  I saw one on one of the FTP sites today,
  17. >> [Stuff deleted]
  18. >>     I am looking for a program of that nature too.  If someone knows 
  19. >> where one can be FTP'd I would appreciate E-Mail telling me.  
  20. >>                 Thanks,
  21. >>                 dutc0006@student.tc.umn.edu            
  22. >> 
  23. >I'd prefer a program that generates the RCS or SCCS archives the program was 
  24. >developed in, plus a makefile.  Architectural and design documents would be 
  25. >nice too.
  26. >----------------------------------------------------------------------------
  27. >mikes@ingres.com = Mike Schilling, INGRES, An ASK Group Company, Alameda, CA
  28. >Just machines that make big decisions,
  29. >Programmed by fellows with compassion and vision.    -- Donald Fagen, "IGY"
  30. Ok, stop it! I'm tired of all these requests! The manual
  31. page for "sourcer" follows. Look for the full package at an
  32. FTP archive near you.
  33.  
  34. ----
  35. Mark Bergman    (Biker, Stagehand, (former) Unix user support grunt)
  36. 718-855-9148
  37.  
  38. bergman@panix.com
  39. {cmcl2,uunet}!panix!bergman
  40.  
  41. ----------------------------------------------------------------------
  42.  
  43.  
  44.  
  45. SOURCERER(l1)     MISC. REFERENCE MANUAL PAGES      SOURCERER(l1)
  46.  
  47.  
  48.  
  49. NAME
  50.      sourcerer - generate source code corresponding to input exe-
  51.      cutable.
  52.  
  53. SYNOPSIS
  54.      _s_o_u_r_c_e_r_e_r [language] [options] executable file
  55.      _s_o_u_r_c_e_r_e_r [A AL AP B C CO F L M P PL  S]  [csoa]  executable
  56.      file
  57.  
  58. DESCRIPTION
  59.      _s_o_u_r_c_e_r_e_r generates source code corresponding to  the  input
  60.      executable  binary _f_i_l_e, in the chosen programming language.
  61.      The resulting source code is written to standard output.
  62.  
  63.      _s_o_u_r_c_e_r_e_r operates rapidly.  Due to the particular nature of
  64.      the algorithms used, _s_o_u_r_c_e_r_e_r will generate the source code
  65.      for the executable _f_i_l_e in  no  more  than  twice  the  time
  66.      needed to execute _f_i_l_e.
  67.  
  68.      Options allow the user to generate comments with the  source
  69.      code, and to provide generalized pseudo-code descriptions of
  70.      any system calls made in the executable _f_i_l_e.   The  pseudo-
  71.      code  description  of  system  calls  are, of course, in the
  72.      proper syntax for the chosen language.
  73.  
  74.      The available languages are:
  75.                _O_p_t_i_o_n _N_a_m_e              _L_a_n_g_u_a_g_e
  76.                A                        Ada
  77.                AL                       Algol68
  78.                AP                       Apl
  79.                B                        Basic
  80.                C                        C
  81.                CO                       Cobol
  82.                F                        Fortran
  83.                L                        Lisp
  84.                M                        Modula2
  85.                P                        Pascal
  86.                PL                       PL/I
  87.                S                        Smalltalk
  88.      Wherever they exist, ANSI or ISO standards for each language
  89.      are used.
  90.  
  91. OPTIONS
  92.      If a language is not specified, and the -_a option  is  used,
  93.      _s_o_u_r_c_e_r_e_r scans the input executable _f_i_l_e, and automatically
  94.      selects the most efficient language to  produce  the  source
  95.      code  and  pseudo-code  for  system calls.  This option also
  96.      implies the following options:
  97.  
  98.      -_c        Generate commented source code.
  99.  
  100.      -_s        Generate  pseudo-code   for   any   system   calls
  101.  
  102.  
  103.  
  104. Sun Release 4.1        Last change: Local                       1
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111. SOURCERER(l1)     MISC. REFERENCE MANUAL PAGES      SOURCERER(l1)
  112.  
  113.  
  114.  
  115.                encountered in the executable file.
  116.  
  117.      The other option, -_o, is incompatible with -_a and  -_s.   The
  118.      -_o  option  specifies  that  only pseudo-code for the system
  119.      calls be generated, in the specified language.  This  option
  120.      is  most  often used after _s_o_u_r_c_e_r_e_r warns that the language
  121.      chosen to generate the source code is inappropriate for gen-
  122.      erating the pseudo-code for system calls.
  123.  
  124. EXAMPLES
  125.      _s_o_u_r_c_e_r_e_r -A -c _n_e_w-_e_x_e_c_u_t_a_b_l_e > new-source.ADA
  126.                Generate the Ada source code, commented,  for  the
  127.                program _n_e_w-_e_x_e_c_u_t_a_b_l_e.
  128.      _s_o_u_r_c_e_r_e_r -a _n_e_w-_e_x_e_c_u_t_a_b_l_e > new-source
  129.                Generate commented source code for _n_e_w-_e_x_e_c_u_t_a_b_l_e,
  130.                choosing  the  language  for  the  source code and
  131.                pseudo-coded system calls automatically.
  132.  
  133. DIAGNOSTICS
  134.      _s_o_u_r_c_e_r_e_r will display a warning indicating if the  language
  135.      chosen  to  produce the source code is inappropriate for the
  136.      given executable.  Example:
  137.                Warning: _l_a_n_g_u_a_g_e is inefficient  for  _e_x_e_c_u_t_a_b_l_e-
  138.                _f_i_l_e.
  139.      A different warning is given if the language is  appropriate
  140.      for  the  executable,  but not for producing the pseudo-code
  141.      for the system calls.  In this case, _s_o_u_r_c_e_r_e_r will  suggest
  142.      an  alternative  language to produce the pseudo-coded system
  143.      calls; in the form:
  144.                Warning: _l_a_n_g_u_a_g_e is inefficient  for  the  system
  145.                calls, try _l_a_n_g_u_a_g_e_2.
  146.  
  147. BUGS
  148.      The -_s or -_a options may slow down the  translation  process
  149.      considerably.   Generating pseudo-code corresponding to sys-
  150.      tem calls can take up to the square of the time necessary to
  151.      execute each system call.
  152.  
  153.      _s_o_u_r_c_e_r_e_r was written in a proprietary  language,  _s_o_u_r_c_e_r_e_r
  154.      cannot be applied recursively, as in:
  155.                _s_o_u_r_c_e_r_e_r -C sourcerer > sourcerer.c
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Sun Release 4.1        Last change: Local                       2
  171.  
  172.  
  173.  
  174.