Info-Mac Archive Downloads: dev/src/ SourceCode

Back to dev/src/ SourceCode

A mini drag-and-drop archiver (stuff-c.hqx)

Download stuff-c.hqx (58,353 KB)


From: jrrk@camcon.co.uk (Jonathan Kimmitt)
Subject: A mini drag-and-drop archiver
Date: Thu, 5 May 1994 14:33:56 -0500



--========================_13840704==_
Content-Type: text/plain; charset="us-ascii"

Here's something that I knocked up over the bank holiday weekend which
might be of interest.
Let me know what you think. Cheers
JRRK

------------------------------------------------------




Macintosh users might be interested in my attempt to evaluate
the performance of the power PC in a 'real' rather than a benchmark
situation. What follows is the source code and FAT binary for a mini
drag-and-drop archiver which uses the IEEE compress algorithm
and hence is compatible with the original "stuffit".

For maximum learning value I tried to make the source compatible with
both of the Metrowerks compilers and the traditional THINK_C style
of headers. The only real difference in a small program like this
is the use of universal proc pointers to handle the apple events
required for drag-and-drop operation.

Since I couldn't find a better way of doing it I made the FAT binary
by manually merging the 68000 version with the powerPC output of
the Metrowerks Linker using ResEdit. Despite the 'FAT' designation it
is only 24K which might be regarded as acceptable.

On a 6100/60 the emulated version of the program knocks an LC-III
into a cocked-hat, but the native version achieves possibly only
a 50% speedup over the emulated version. I attribute this surprising
result to the relatively frequent use of toolbox calls during the
operation in order to keep buffer sizes small, and of course the
fact that the compiler is only an alpha version.

No responsibility accepted for any data loss caused by using this
archiver on your files. It is only meant to be a benchmark remember.
You have been warned.

Your comments on bugs, performance tweaks, enhancements welcome
to jrrk@camcon.co.uk




Attachment converted: Spiff:stuff.sit (SITD/SIT!) (000184B8)
-----

Jonathan Kimmitt

In case of difficulty,
try jrrk@uk.co.camcon and/or jrrk@camcon.co.uk
when replying to this mail






--========================_13840704==_
Content-Type: application/mac-binhex40; name="stuff.sit"
Content-Disposition: attachment; filename="stuff.sit"