Author Topic: Defragmenting  (Read 2671 times)

0 Members and 1 Guest are viewing this topic.

Offline Tgooseman

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 17
  • Rating: +1/-0
    • View Profile
Defragmenting
« on: May 08, 2011, 11:23:16 pm »
Can somebody please explain what the calculator is doing when it says "defragmenting"?   What does this process involve and why is it done?

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Defragmenting
« Reply #1 on: May 08, 2011, 11:29:13 pm »
This happens when the TIOS wants to "clean out" its archive, like a Garbage Collect.  Basically, if you delete an App, the OS has to reset the page(s) that App was on, because Flash can only be reset a page (16348 bytes) at a time.  The name may be a bit misleading, but it's in there so the space Apps come from upon deletion can be written to at a future point in time.

(I may not be entirely correct; hopefully someone like ThePenguin or BrandonW comes in here later and adds a better description. ;) )

Offline z80man

  • Casio Traitor
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 977
  • Rating: +85/-3
    • View Profile
Re: Defragmenting
« Reply #2 on: May 08, 2011, 11:41:28 pm »
Okay think of the flash memory like this. Whenever you save something to flash it is stacked in there on the next available page. So if you save 1 app, it will be saved on the first available page. If you have a second app it will be stored on the second page. but if you deleted the first page, it is not actually deleted, but marked as deletable. Then when you have reached your limit of flash TIOS goes in and deletes the deletable pages to make more room at the top.

List of stuff I need to do before September:
1. Finish the Emulator of the Casio Prizm (in active development)
2. Finish the the SH3 asm IDE/assembler/linker program (in active development)
3. Create a partial Java virtual machine  for the Prizm (not started)
4. Create Axe for the Prizm with an Axe legacy mode (in planning phase)
5. Develop a large set of C and asm libraries for the Prizm (some progress)
6. Create an emulator of the 83+ for the Prizm (not started)
7. Create a well polished game that showcases the ability of the Casio Prizm (not started)

Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Defragmenting
« Reply #3 on: May 09, 2011, 05:07:33 am »
Basically, the flash page is filled with FF's (in hex)
I'm not a nerd but I pretend: