home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / c / compbasic / !CompBasic / !Help next >
Text File  |  1992-11-15  |  3KB  |  54 lines

  1.                                 !CompBasic
  2.                                 ==========
  3.  
  4.    !CompBasic is a program that allows you to compress basic programs while
  5. still allowing the program to run correctly. It does this by using the
  6. techniques outlined below. This has the advantage that the programs take
  7. less space on disk, are (slightly) faster to load and take up less memory
  8. once loaded. They should also run slightly faster because there is less
  9. program to scan through for PROC calls etc..
  10.    
  11.    To use the program you must double click on the icon to load it and then
  12. drag a BASIC program onto the icon or onto the main window. The window shows
  13. the name of the program, number of lines in the program and also all the
  14. compression options. Selecting menu opens a savebox, which allows you to
  15. begin the compression. The name you save it under must be different to the
  16. original prgram.
  17.    
  18.    The iconbar menu allows you to set wether or not the compression is
  19. multitasking (if it is, the compression will take longer but you will be
  20. able to do other things while compressing). The abort option is only
  21. selectable while compressing and will abort the operation (obviously). The
  22. save opts option saves all of the options to disk so that when the program
  23. is run again it will use the same compression.
  24.                                 
  25. Techniques Used
  26. ===============
  27.  
  28. Space compression  - This option cannot be removed and will remove most
  29.                      spaces from any program. The exceptions are those within
  30.                      speech marks and some spaces which would make the
  31.                      program uneditable or make the program error if run.
  32. Extra space        - This removes spaces that are only needed for editors
  33.                      (i.e. spaces around tokenised instructions.)
  34. Remove blank lines - Any lines which are only a ":" or nothing are removed.
  35. Remove REMs        - Removes any REM statements
  36. Remove THENs       - Removes any excess THENs
  37. Replace ASCs       - This turns ASC expressions into numbers
  38. Change SWIs        - This changes SWI names to numbers
  39. Compress DEFs      - Turns all PROC and FN names in 2 letters. This means
  40.                      that you can have over 600 PROCs and over 600 FNs in
  41.                      the program.
  42. Join lines         - Joins lines together
  43. Join DATA          - Joins DATA expressions
  44. Renumber           - Doesn't change the length but just renumbers in
  45.                      increments of 10
  46.                      
  47.    Further additions may include sum compression (which will evaluate sums
  48. making the program shorter and faster) and variable name compression. If you
  49. have any other ideas of feature to add please write to me.
  50.    
  51.      James Miskin
  52.      23 Hardwick Drive
  53.      Loughborough
  54.      LE11 OTJ