Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

deflate

Compress files for flash filesystems

Syntax:

deflate [options] [filename]...

Options:

-b size
The compression block size; one of 4K, 8K, 16K or 32K (default: 8K). The K is assumed; you don't need to specify it.
-o fname
The output filename. A filename of - means standard output. By default, deflate compresses the files in place.
-i
Inflate files (default: deflate).
-t 1|2
The compression type; the default is 2. For a comparison of the types, see below.
-v
Be verbose; list information on each file as it's compressed.
filename...
The files to compress. If no files are given and the -i option is specified, deflate reads from standard input and writes to standard output, allowing it to be used as a filter.

Description:

The deflate utility compresses files for a flash filesystem. It's intended to be used in conjunction with the filter attribute for mkefs. It can also be used to precompress files intended for a flash filesystem.

The compression types (specified with the -t option) are:

Type Compression Speed Decompression Speed Compression Amount
1 Fast Very fast 30% on executables
2 Slow Fast 45% on executables

Examples:

Deflate all executables that are to be placed on an embedded target:

deflate -v /target/bin/* /target/lib/*

Inflate a previously deflated file:

deflate -i deflated_file

Deflate file without changing the input file:

deflate -o file.dfl file

See also:

inflator

"Flash filesystems (devf-*)" in the Utilities Summary


[Previous] [Contents] [Index] [Next]