[comp.sys.mac.programmer] Disk swapping joys...

wayner@svax.cs.cornell.edu (Peter Wayner) (02/24/90)

I just tried a program I wrote on a one drive MacPlus. The memory
and the system components were fine, but I must have swapped the
program disk with the system disk about 30 times before the program
ran. What are the best ways to load all the different code resources
into memory at the beginning before running anything and generating
system calls? I suppose this might belong in alt.folklore, but I would
like to make my code run smoother for the people who still live in
the pre-hard-disk world.

Thanks to anyone who can give me some hints...

-Peter Wayner
(wayner@cs.cornell.edu)



Peter Wayner   Department of Computer Science Cornell Univ. Ithaca, NY 14850
EMail:wayner@svax.cs.cornell.edu    Office: 607-255-9202
Home: 119 Ferris Place, Ithaca, NY 14850  Phone: 607-277-0785

mxmora@unix.SRI.COM (Matt Mora) (02/24/90)

In article <37707@cornell.UUCP> wayner@cs.cornell.edu (Peter Wayner) writes:
>I just tried a program I wrote on a one drive MacPlus. The memory
>and the system components were fine, but I must have swapped the
>program disk with the system disk about 30 times before the program
>ran. What are the best ways to load all the different code resources
>into memory at the beginning before running anything and generating
>system calls? I suppose this might belong in alt.folklore, but I would
>like to make my code run smoother for the people who still live in
>the pre-hard-disk world.
>
>Thanks to anyone who can give me some hints...


>-Peter Wayner
>(wayner@cs.cornell.edu)


You might want to set the preload bit of your resources to true.
This might help but on a mac plus you might be running up to
some memory limits. What does your program do? Does it use
a lot of resources?

Any more information would help.






-- 
___________________________________________________________
Matthew Mora
SRI International                       mxmora@unix.sri.com
___________________________________________________________