Welcome, Guest. Please login or register.

Author Topic: What does PURE mean in startup assigns?  (Read 3023 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: What does PURE mean in startup assigns?
« Reply #14 from previous page: March 03, 2007, 10:16:07 PM »
Quote
To be more precise, any const data, be it static or not, is ok, as long as it's not put in the BSS section.

Well naturally. That "static const" was about the specific case when static is ok.

Quote
Pure executables are also about saving memory, as you don't have to load the TEXT part of the program more than once in memory, much like libraries.

True. However, residents also waste memory. If the particular program is not running, it still sits in the memory eating chunk of memory for nothing.

In fact, not many programs really run simultanously often enough to justify being resident in memory.

The most benefit from resident commands comes with slow media (floppies, cd-rom etc).
 

Offline lurkistTopic starter

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 513
    • Show only replies by lurkist
Re: What does PURE mean in startup assigns?
« Reply #15 on: March 03, 2007, 10:26:20 PM »
I thought the point of having something resident was not if it was run simutaneously, but if it was run multiple times  to prevent multiple accesses of the same sector on hard drives (or floppies).  For instance,  copying a large amount of files.  Sure you could use a multi-select option or something, but if you're not the disk is accessing the "copy" file each time, thus wearing it out.

That and the speed increase of course.

Or have I misunderstood the purpose of Resident?
A1200 Power Tower, Blizzard 1260 66 +32MB, OS3.9, 2.5\\" HD, IDEfix97 + DVD-RW + Zip, SD/FF + 15\\" CRT, Ioblix1200P + scanner, PCMCIA LAN + router
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: What does PURE mean in startup assigns?
« Reply #16 on: March 03, 2007, 10:29:14 PM »
The reason resident is used in startup-sequence is to speed up the booting (esp with floppies).

Not accessing the disk is the result, but the motivation wasn't reducing disk access to avoid media wearing. Naturally this might have been someone else's motivation for using residents...
 

Offline DonnyEMU

  • Hero Member
  • *****
  • Join Date: Sep 2002
  • Posts: 650
    • Show only replies by DonnyEMU
    • http://blog.donburnett.com
Re: What does PURE mean in startup assigns?
« Reply #17 on: March 04, 2007, 01:47:52 AM »
It also means the code is able to be resident because it is RE-ENTRANT. Meaning you call call it multiple times using the same memory allocation etc.. (well not exactly but that's the general IDEA)..
======================================
Don Burnett Developer
http://blog.donburnett.com
don@donburnett.com
======================================