Mail Archives: djgpp/2001/10/01/23:06:38
Radical, NetSurfer wrote:
>
> I finally got in the results of my Borland 32-bit console
> application as ported to now both DJGPP 2.03/GCC 2.95.3,
> and MSVC++ 6.0....
>
> if anyone wants the actual break down:
>
> Program #1:
> C++Builder 3.0 Pro Console32: 1h 33m 07s
> DJGPP: 38m 33s <---
> MSVC++ 6.0: 1h2m24s
>
> Program #2:
> C++Builder 3.0 Pro Console32: 8m 15s
> DJGPP: 6m 37s
> MSVC++ 6.0: 5m 20s <-----
>
> Program #1 scans entire lines of text ("sentences") using
> strstr(), then inspects the left and right -hand sides for
> white-space, and/or punctuation delimiters... then applies
> word-substitutions... deconstructing and then reconstructing
> the "sentence" each time a term matches...
>
> Program #2 breaks sentences down into individual white-space and
> punctuation -delimited words, and applies an alphabetized
> lookup/substitution to each individual word...
If you want to try another algorithm, send me an e-mail and I will
send you the executable of:
c:\dnld>id2id
ID2ID (source, target, idpairs, output) Ver. 1.9
usage: ID2ID source target [idpairs]
Replaces identifiers in source, writing to target
If idpairs is not specified on the command line
the file "IDPAIRS." is used. If missing the identifier
list to change is considered empty
idpairs contains a list, in the form:
oldname newname (one per line)
The default input language is Pascal (comment syntax etc)
Initial optional lines in idpairs as follows configure:
$C use C syntax
$ASM use assy syntax
$UPSHIFT upshift all ids on input
$DOWNSHIFT downshift all ids on input
(these must be in upper case)
by default, ID2ID is case sensitive
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT XXXXworldnet DOT att DOT net)
(Remove "XXXX" from reply address. yahoo works unmodified)
mailto:uce AT ftc DOT gov (for spambots to harvest)
- Raw text -