home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dosdisas.zip / dcc.txt < prev    next >
Text File  |  2002-05-11  |  2KB  |  34 lines

  1. Using dcc
  2.  
  3. Here is a very brief summary of switches for dcc:
  4.  
  5.    * a1, a2: assembler output, before and after re-ordering of input code
  6.    * c: Attempt to follow control through indirect call instructions
  7.    * i: Enter interactive disassembler
  8.    * m: Memory map
  9.    * s: Statistics summary
  10.    * v, V: verbose (and Very verbose)
  11.    * o filename: Use filename as assembler output file
  12.  
  13. For example, dcc can be invoked in the following way to produce an assembly
  14. file (.asm) and a C-like file (.b):
  15.  
  16.         dcc -a1 file.exe
  17.  
  18. If dcc encounters illegal instructions, it will attempt to enter the so
  19. called interactive disassembler. The idea of this was to allow commands to
  20. fix the problem so that dcc could continue, but no such changes are
  21. implemented as yet. (Note: the Unix versions do not have the interactive
  22. disassembler). If you get into this, you can get out of it by pressing ^X
  23. (control-X). Once dcc has entered the interactive disassembler, however,
  24. there is little chance that it will recover and produce useful output.
  25.  
  26. If dcc loads the signature file dccxxx.sig, this means that it has not
  27. recognised the compiler library used. You can place the signatures in a
  28. different direcory to where you are working if you set the DCC environment
  29. variable to point to their path. Note that if dcc can't find its signature
  30. files, it will be severely handicapped.
  31.  
  32. Note that dcc produces C source files; dcc does not procude C++ source. The
  33. output is in a file with extension ".b".
  34.