home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!psinntp!panix!bergman
- From: bergman@panix.com (Mark Bergman)
- Subject: Re: Program to convert .EXE to a "C" source file? I really need one!!
- Message-ID: <C0CG28.3p0@panix.com>
- Organization: Panix Public Access Internet & Unix, NYC
- References: <1993Jan2.203527.27050@news2.cis.umn.edu> <1993Jan4.022241.4493@pony.Ingres.COM>
- Date: Mon, 4 Jan 1993 19:13:19 GMT
- Lines: 163
-
- In article <1993Jan4.022241.4493@pony.Ingres.COM> mikes@Ingres.COM (Mike Schilling) writes:
- >From article <1993Jan2.203527.27050@news2.cis.umn.edu>, by dutc0006@student.tc.umn.edu ():
- >> In article <1993Jan1.225604.964@blurt.oswego.edu> ch_ind05@blurt.oswego.edu (Greg Fuller (SUNY Oswego, Oswego New York)) writes:
- >>>Hello.
- >>> I am looking for a program that will take a .EXE or .COM file and
- >>>convert it into a "C" source file. I saw one on one of the FTP sites today,
- >> [Stuff deleted]
- >> I am looking for a program of that nature too. If someone knows
- >> where one can be FTP'd I would appreciate E-Mail telling me.
- >> Thanks,
- >> dutc0006@student.tc.umn.edu
- >>
- >I'd prefer a program that generates the RCS or SCCS archives the program was
- >developed in, plus a makefile. Architectural and design documents would be
- >nice too.
- >----------------------------------------------------------------------------
- >mikes@ingres.com = Mike Schilling, INGRES, An ASK Group Company, Alameda, CA
- >Just machines that make big decisions,
- >Programmed by fellows with compassion and vision. -- Donald Fagen, "IGY"
- Ok, stop it! I'm tired of all these requests! The manual
- page for "sourcer" follows. Look for the full package at an
- FTP archive near you.
-
- ----
- Mark Bergman (Biker, Stagehand, (former) Unix user support grunt)
- 718-855-9148
-
- bergman@panix.com
- {cmcl2,uunet}!panix!bergman
-
- ----------------------------------------------------------------------
-
-
-
- SOURCERER(l1) MISC. REFERENCE MANUAL PAGES SOURCERER(l1)
-
-
-
- NAME
- sourcerer - generate source code corresponding to input exe-
- cutable.
-
- SYNOPSIS
- _s_o_u_r_c_e_r_e_r [language] [options] executable file
- _s_o_u_r_c_e_r_e_r [A AL AP B C CO F L M P PL S] [csoa] executable
- file
-
- DESCRIPTION
- _s_o_u_r_c_e_r_e_r generates source code corresponding to the input
- executable binary _f_i_l_e, in the chosen programming language.
- The resulting source code is written to standard output.
-
- _s_o_u_r_c_e_r_e_r operates rapidly. Due to the particular nature of
- the algorithms used, _s_o_u_r_c_e_r_e_r will generate the source code
- for the executable _f_i_l_e in no more than twice the time
- needed to execute _f_i_l_e.
-
- Options allow the user to generate comments with the source
- code, and to provide generalized pseudo-code descriptions of
- any system calls made in the executable _f_i_l_e. The pseudo-
- code description of system calls are, of course, in the
- proper syntax for the chosen language.
-
- The available languages are:
- _O_p_t_i_o_n _N_a_m_e _L_a_n_g_u_a_g_e
- A Ada
- AL Algol68
- AP Apl
- B Basic
- C C
- CO Cobol
- F Fortran
- L Lisp
- M Modula2
- P Pascal
- PL PL/I
- S Smalltalk
- Wherever they exist, ANSI or ISO standards for each language
- are used.
-
- OPTIONS
- If a language is not specified, and the -_a option is used,
- _s_o_u_r_c_e_r_e_r scans the input executable _f_i_l_e, and automatically
- selects the most efficient language to produce the source
- code and pseudo-code for system calls. This option also
- implies the following options:
-
- -_c Generate commented source code.
-
- -_s Generate pseudo-code for any system calls
-
-
-
- Sun Release 4.1 Last change: Local 1
-
-
-
-
-
-
- SOURCERER(l1) MISC. REFERENCE MANUAL PAGES SOURCERER(l1)
-
-
-
- encountered in the executable file.
-
- The other option, -_o, is incompatible with -_a and -_s. The
- -_o option specifies that only pseudo-code for the system
- calls be generated, in the specified language. This option
- is most often used after _s_o_u_r_c_e_r_e_r warns that the language
- chosen to generate the source code is inappropriate for gen-
- erating the pseudo-code for system calls.
-
- EXAMPLES
- _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
- Generate the Ada source code, commented, for the
- program _n_e_w-_e_x_e_c_u_t_a_b_l_e.
- _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
- Generate commented source code for _n_e_w-_e_x_e_c_u_t_a_b_l_e,
- choosing the language for the source code and
- pseudo-coded system calls automatically.
-
- DIAGNOSTICS
- _s_o_u_r_c_e_r_e_r will display a warning indicating if the language
- chosen to produce the source code is inappropriate for the
- given executable. Example:
- Warning: _l_a_n_g_u_a_g_e is inefficient for _e_x_e_c_u_t_a_b_l_e-
- _f_i_l_e.
- A different warning is given if the language is appropriate
- for the executable, but not for producing the pseudo-code
- for the system calls. In this case, _s_o_u_r_c_e_r_e_r will suggest
- an alternative language to produce the pseudo-coded system
- calls; in the form:
- Warning: _l_a_n_g_u_a_g_e is inefficient for the system
- calls, try _l_a_n_g_u_a_g_e_2.
-
- BUGS
- The -_s or -_a options may slow down the translation process
- considerably. Generating pseudo-code corresponding to sys-
- tem calls can take up to the square of the time necessary to
- execute each system call.
-
- _s_o_u_r_c_e_r_e_r was written in a proprietary language, _s_o_u_r_c_e_r_e_r
- cannot be applied recursively, as in:
- _s_o_u_r_c_e_r_e_r -C sourcerer > sourcerer.c
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sun Release 4.1 Last change: Local 2
-
-
-
-