PDA

View Full Version : a68k?


Cyker
05-28-2004, 05:47 PM
I was browsing through the internal memory with Filez when I noticed that there are TRUCKLOADS of 84byte (i.e. empty databases) files with names similar to installed programs and with the creator "a68k" - What are they?! I can't delete them, and they seem to hang around even when I have removed the program that they are (presumably) associated with!

CliePet
06-01-2004, 07:12 PM
http://www.cliesource.com/forums/showthread/t-25380.html

Cyker
06-02-2004, 01:05 PM
Thanks CliePet!

I had a feeling it might be something like that.
I will leave them well alone. :D

For anyone else interested, here's more info from http://www.palmoswerks.com/stories/storyReader$111

=====

The 'a68k' Database Mystery

On palm-dev-forum, one of the developers was wondering about a special database type he saw on the Palm OS 5 Simulator. He kept seeing databases that had the type 'a68k' and names like "Clock_PcLK_appl_a68k"? What are these, and why are they important?

The 'a68k' database is a special RAM-based database that PACE creates for each 68K application on the device. This database is created the first time the application is run, and stays on the device until the application is deleted.

Normally, these databases are empty. However, when your program is running, these databases are used to store the ARM- native versions of the resources your application is using. For example, rather than act on the 68K-formatted form you bundled with your app, PACE does a one-time conversion of the form to little endian and ARM structure alignment and stores it in the 'a68k' database for use.

While your application is running in the Palm OS 5 Simulator, take a moment to use the View/Databases commmand and find the a68k DB that goes with your application. If you look at its contents, it will have the currently active set of resources, all in their ARM-native formats. This DB will keep the cached structures until the application closes, when they'll be removed.

Normally, you don't need to know or care about these special databases. However, the fact that PACE uses them as a speed optimization explains a lot of the changes that applications need for Palm OS 5. For example, you don't access the internals of a control in OS 5 because the internals are now in a different format, and the 68K code could mess up the ARM version of the structures, since it doesn't take the layout changes into consideration.

Update: Deleting 'a68k' DBs (7 Nov 2002)

Paul Nevai (http://www.paulcomputing.com), author of pedit and LapTopHack, provides some useful information. If you need to delete an 'a68k' database from the device, you need to first unprotect the database using the DmDatabaseProtect API. It looks like the OS protects all of these databases so they won't be accidentally removed while the linked application is in use.

Shadowhuah
06-02-2004, 03:05 PM
Thanks,

I was doing some maintenance on mine todya and noticed the same thing. I was going to ask that very question... Is this a great site or what?

Shadowhuah