ARC is a lossless data compression and archival format by System Enhancement Associates (SEA). The file format and the program were both called ARC. The format is known as the subject of controversy in the 1980s, part of important debates over what would later be known as open formats. ARC was extremely popular during the early days of the dial-up BBS. ARC was convenient as it combined the functions of the SQ program to compress files and the LU program to create .LBR archives of multiple files. The format was later replaced by the ZIP format, which offered better compression ratios and the ability to retain directory structures through the compression/decompression process. The .arc filename extension is often used for several unrelated file archive-like file types. For example, the Internet Archive used its own ARC format to store multiple web resources into a single file. The FreeArc archiver also uses a .arc extension, but uses a completely different file format. Nintendo uses an unrelated "ARC" format for resources, such as audio, or text, in GameCube and Wii games. Several unofficial extractors exist for this type of ARC file.
File Format Component files are stored sequentially within an archive, followed by an end-of-archive marker 0x1A 0x00. Each entry is preceded by a 29-byte header, which contains the directory information. All multi-byte values in the header are stored in little-endian byte order. Archive entries are normally maintained in sorted name order. The format of the 29-byte archive header is as follows:
Compression Methods The nature of the compression method is indicated by the header version number placed in each archive entry, as follows:
0 - End of archive marker (remaining bytes not present) 1 - Unpacked: old style header, no compression 2 - Unpacked: new style header, no compression 3 - Packed: RLE encoding, compression of repeated characters only. 4 - Squeezed: compression of repeated characters plus Huffman Squeezing. 5 - Crunched: Lempel-Ziv packing of repeated strings (old style), was added as of version 4.0 6 - Crunched: Lempel-Ziv packing of repeated strings (new style), was added as of version 4.1 7 - Crunched: LZW packing with improved hash function, which yields speed improvements of 20-25%, and was added as of version 4.6 8 - Crunched: dynamic Lempel-Ziv packing with variable code size and an adaptive block reset, was added as of version 5.0. 9 - Squashed: dynamic Lempel-Ziv packing, with larger hash table. A slight modification of type 8, first used by Phil Katz in his PKARC utilities. The primary difference is the use of a hash table twice as large as for type 8, and that this algorithm called Squashing, doesn't perform run-length encoding on the input data.
Format of the MS-DOS time stamp The 32-bit MS-DOS time stamp is limited to an even count of seconds, since the count for seconds is only 5 bits wide. Date fields:
Time fields:
CRC Computation Archive files use a 16-bit cyclic redundancy check (CRC) for error control. The particular CRC polynomial used is x16+x15+x2+1, which is commonly known as "CRC-16" and is used in many data transmission protocols (e.g. DEC DDCMP and IBM BSC), as well as by most floppy disk controllers. Note that this differs from the CCITT polynomial (x16+x12+x5+1), which is used by the XMODEM-CRC protocol and the public domain CHEK program (although these do not adhere strictly to the CCITT standard).
History In 1985, Thom Henderson of System Enhancement Associates wrote a program called ARC, based on earlier programs such as ar, that not only grouped files into a single archive file but also compressed them to save disk space, a feature of great importance on early personal computers, where space was very limited and modem transmission speeds were very slow. The archive files produced by ARC had file names ending in ".ARC" and were thus sometimes called "arc files". The source code for ARC was released by SEA in 1986 and subsequently ported to Unix and Atari ST in 1987 by Howard Chu. This more portable codebase was subsequently ported to other platforms, including VAX/VMS and IBM System/370 mainframes. Howard's work was also the first to disprove the prevalent belief that Lempel-Ziv encoded files could not be further compressed. Additional compression could be achieved by using Huffman coding on the LZW data, and Howard's version of ARC was the first program to demonstrate this property. This hybrid technique was later used in several other compression schemes by Phil Katz and others. Later, Phil Katz developed his own shareware utilities, PKARC and PKXARC, to create archive files and extract their contents. These files worked with the archive file format used by ARC and were significantly faster than ARC on the IBM PC platform due to selective assembly language coding. Unlike SEA, which combined archive creation and archive file extraction in a single program, Katz divided these functions between two separate utilities, reducing the amount of memory needed to run them. PKARC also allowed the creation of self-extracting archives, which could unpack themselves without requiring an external file extraction utility. Following the System Enhancement Associates, Inc. vs PKWARE Inc. and Phillip W. Katz lawsuit, SEA withdrew from the shareware market and developed ARC+Plus. This version included a full-screen user interface, with the last known version being 7.12. SEA was eventually sold to an unspecified Japanese company in 1992. The ARC format is no longer common on PC desktops, but most antivirus scanners can still uncompress any ARC archives found in order to detect viruses within the compressed files.
… excerpt ends here. Continue reading the full article.