Skip to content
Surf Wiki
Save to docs
general/computer-file-formats

From Surf Wiki (app.surf) — the open knowledge base

PRC (Palm OS)


PRC (Palm Resource Code) is a container format for code databases in Palm OS, Garnet OS and Access Linux Platform. Its structure is similar to PDB databases. Usually, a PRC file is a flat representation of a Palm OS application that is stored as forked database on the PDA.

PRC files are also used by the Mobipocket e-book-reader (here sometimes referred to as MOBI format). The AZW format of Amazon's Kindle reading device is in turn a DRM-restricted form of the Mobipocket format.

On Palm OS, PRC files are used for applications, localized resources (overlays) and shared libraries.

Structure of PRC file

In its essence, a PRC file is similar to a classic Mac OS application. It contains a PRC header, PRC resource headers and PRC resources.

PRC Resources

PRC Header

The PRC header is located at the beginning of the file and contains meta-information on the file:

OffsetNameTypeSize
0x00namechar32 Bytes
0x20flagsinteger2 Bytes
0x22versioninteger2 Bytes
0x24creation time32bit integer - PDB Datetime4 Bytes
0x28modification time32bit integer - PDB Datetime4 Bytes
0x2cbackup time32bit integer - PDB Datetime4 Bytes
0x30mod_numinteger4 Bytes
0x34app_infointeger4 Bytes
0x38sort_infointeger4 Bytes
0x3ctypeinteger4 Bytes
0x40creatorinteger4 Bytes
0x44unique_id_seedinteger4 Bytes
0x48next_record_listinteger4 Bytes
0x4cnum_recordsinteger2 Bytes

PRC Resource Header

For every resource (specified by num_records), there is a resource header containing:

nametypenotessize
namecharName of the resource4 bytes
IDintegerID number of the resource2 bytes
offsetintegerPointer to resource data4 bytes

PRC Resources

Every application contains al least a Code #0 resource with size information and jump tables, a Code #1 resource with executable code and data resources containing pre-initialized values of global variables in compressed form. Other resources that may be contained are forms, form objects, alerts and multimedia data, e. g. images and sounds.

References

References

  1. N. Rhodes, J. McKeehan. Palm OS Programming, Second Edition, O'Reilly, 2001, {{ISBN. 1-56592-856-3.
  2. MobileRead Wiki: [http://wiki.mobileread.com/wiki/MOBI Reference for the MOBI format]
  3. Theodore Ts'o (2000) [http://web.mit.edu/tytso/www/pilot/prc-format.html The PRC Format.] Accessed on 2009-03-07
Info: Wikipedia Source

This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page.

Want to explore this topic further?

Ask Mako anything about PRC (Palm OS) — get instant answers, deeper analysis, and related topics.

Research with Mako

Free with your Surf account

Content sourced from Wikipedia, available under CC BY-SA 4.0.

This content may have been generated or modified by AI. CloudSurf Software LLC is not responsible for the accuracy, completeness, or reliability of AI-generated content. Always verify important information from primary sources.

Report