home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / DRI-archive / roche / VCOMP.TXT < prev    next >
Internet Message Format  |  2009-12-11  |  6KB

  1. From: French Luser <Gary.Kild...@Digital.Research.com>
  2. Newsgroups: comp.os.cpm
  3. Subject: Re: What's the difference?
  4. Date: Wed, 18 Oct 2006 13:41:40 +0200
  5. Message-ID: <fa4cj2liedu142r6f54ln6e39drjlvbhpm@4ax.com>
  6. References: <452106c6$0$27382$ba4acef3@news.orange.fr> <1159800668.846133.265440@b28g2000cwb.googlegroups.com>
  7. X-Newsreader: Forte Free Agent 3.3/32.846
  8. MIME-Version: 1.0
  9. Content-Type: text/plain; charset=us-ascii
  10. Content-Transfer-Encoding: 7bit
  11. X-Antivirus: avast! (VPS 0642-0, 17/10/2006), Outbound message
  12. X-Antivirus-Status: Clean
  13. Lines: 124
  14. Organization: les newsgroups par Orange
  15. NNTP-Posting-Date: 18 Oct 2006 13:41:42 CEST
  16. NNTP-Posting-Host: 80.11.65.178
  17. X-Trace: 1161171702 news.orange.fr 5105 80.11.65.178:60494
  18. X-Complaints-To: abuse@orange.fr
  19.  
  20. Hello, "Old Timer (John)"!
  21.  
  22. Many thanks for pointing me to VCOMP.
  23.  
  24. Last night, I tested it. Read below what I did.
  25.  
  26. Would you mind telling me/us what more you can say about VCOMP?
  27.  
  28. (What is the size of the biggest file you compared?)
  29.  
  30. Yours Sincerely,
  31. "French Luser"
  32.  
  33.  
  34. VCOMP.TXT
  35. ---------
  36.  
  37. Ok. I  have finally  had enough  time to  try the  VCOMP program 
  38. mentioned by  "Old Timer (John)" in  response to  my "What's the 
  39. difference?" message.
  40.  
  41. VCOMP stands for "Visual Compare". I found Version  1.52 on  the 
  42. Internet, made by one John R.  Whitney in  1992. The  MS-DOS EXE 
  43. file  is  30  KB,  but  I  suspect that  it is  a self-expanding 
  44. program,  since  I saw  strange-looking message  strings when  I 
  45. dumped it.
  46.  
  47. Among other things, I found that it works under MS-DOS 2.1+, has 
  48. a maximum line length of 2,048 characters, and a maximum  number 
  49. of  lines  of  16,368  lines. Somewhere,  the doc  says: "Visual 
  50. Compare keeps the contents  of the  files you  are comparing  in 
  51. memory. Visual Compare can use up to 4 Megabytes of DOS memory."
  52.  
  53. So, I copied twice  the source  code of  ASM-86, but  I got  the 
  54. error message: "Out of memory". I then reduced both files  to be 
  55. 16,368-lines long: same error message. I then continued reducing 
  56. both  files,  until  I  reached  15,000  lines and  quit: Visual 
  57. Compare was still unable to deal with them, even when  they were 
  58. only 222 Kilobytes long.
  59.  
  60. I then tried  VCOMP with  a smaller  size of  files. Remembering 
  61. LLLFPP (the Lawrence Livermore Laboratory Floating-Point Package 
  62. that was mentioned a few days ago in the comp.os.cpm Newsgroup), 
  63. I decided to have a go. You may remember that there are at least 
  64. 3 versions: 2 from Volumes 2  and 10  of the  CP/M User's  Group 
  65. "Software Library", and 1 that I retyped. The first 2  are about 
  66. 62 Kb in size, while mine is about 42 Kb.
  67.  
  68. After a  few trials  and re-reading  the provided  doc file  the 
  69. appropriate number of times, I finally  understood a  little how 
  70. it works. It is, for sure, a change from line-oriented programs! 
  71. It also use quite a lot colors, while I almost  never use  them, 
  72. since I started with a daisy-wheel printer (which had, in  fact, 
  73. some bi-color capability, but I never used it).
  74.  
  75. If you type VCOMP on the command line, you get a screenful  with 
  76. some information. You are supposed to type the  filespec of  the 
  77. the first file, use the <Down Arrow> key to go where to type the 
  78. filespec of the second file, then either press  ENTER or  re-use 
  79. the <Down Arrow> to go to the "Options" line, etc.
  80.  
  81. The other way is more CP/M-like,  as a  command line.   You type 
  82. VCOMP  filespec1  filespec2  /options.  I  could  not  find  any 
  83. interesting option, so just used the defaults.
  84.  
  85. There are several mentions of a "composite file", but I have not 
  86. reached this level, so far. (Apparently, it is a file  made with 
  87. the first file and the line(s) differing from the second file.)
  88.  
  89. One important key is the F6 key: it enables you  to see  1) file 
  90. one, 2) file two, or 3) both files. In this latter case, another 
  91. Function  key  appears, F9,  which enables  you to  display them 
  92. side-by-side (you also have  the option  of displaying  them one 
  93. above the other).
  94.  
  95. One  curiosity  is  that,  while displaying  both files  with F6 
  96. (before you press F9),  the common  contents of  both files  are 
  97. displayed in white chars, while the line(s) differing  from file 
  98. 1 and file 2 are displayed in different colors! (Both  filespecs 
  99. are  shown,  on  the  title line.   That's the  only difference.  
  100. There is  not a  status line,  like with  WordStar.) It  took me 
  101. quite a while you understand this  way of  doing.  I  prefer the 
  102. side-by-side display, but it is slower to scroll.
  103.  
  104. So, I simply typed  VCOMP FPVOL2.ASM  FPVOL10.ASM, then  pressed 
  105. the F9 key to  see them  side-by-side. When  you display  a file 
  106. only, the <Page Down> key works,  so you  can scroll  quickly up 
  107. and down. But, when you display 2 files  side-by-side, only  the 
  108. <Down Arrow> key (one line up) works, so  the scrolling  is much 
  109. slower.
  110.  
  111. In the present case, the differences between the LLLFPP found in 
  112. Volumes 2  and  10  are  displayed  on  the screen  in different 
  113. colors, with the common code in white characters.  At a  glance, 
  114. it is  thus  obvious that  they are  almost the  same: only  the 
  115. EQUates at the beginning, and a ORG at the end, are different.
  116.  
  117. However, when  I tried  VCOMP with  my version,  it was  totally 
  118. confused, and could not recognize a single common line with  the 
  119. 2 old files, despite the fact  that the  code is  99% identical! 
  120. (It seems totally confused  by the  comments (";")  lines of  an 
  121. assembly language program.)
  122.  
  123. So, I think that  VCOMP was  used to  compare high-level  source 
  124. code files, not assembly language files. I could not find  a way 
  125. to  tell  it  to  skip  the  EQUates at  the beginning,  then to 
  126. concentrate on the labels and mnemonics.
  127.  
  128. Among the doc, it is also mentioned that  "Visual Compare  (...) 
  129. produce a shortest possible sequence of insertions and deletions 
  130. that will convert FILEONE to FILETWO." So, this seems to  be the 
  131. goal of this program: to synchronize 2 high-level program source 
  132. codes. (Why not simply copy the last file?)
  133.  
  134. I have not yet  decided if  I am  going to  write a  COMPASM.BAS 
  135. program. At least, the VCOMP doc file gives the reference of the 
  136. algorithm used.
  137.  
  138.  
  139. Yours Sincerely,
  140. "French Luser"
  141.  
  142.  
  143. EOF
  144.