[comp.sys.mac.programmer] preloading CODE/linker/MacApp question

marc@Apple.COM (Mark Dawson) (07/09/90)

I have found that I need to pre-load a segment.  My problem: depending on
whether I build a debug or non-debug version of my program, this segment #
changes.  I know I could put conditional (#ifdef) statements that redefine
the constant, but I'm still afraid that I (or someone else on my project)
might accidentally change the segment # by adding or deleting object files
to be linked.  

Is there someway to guarantee the segment#?  I read the 3.0 MPW linker chapter
which said that you could specify the order that modules would be linked.  Can
you partially list the modules to be linked (i.e. link _Main 1st, myMod 2nd, 
and the rest by the default rules)?  My MacApp program has over 60 segments;
I'd like to avoid listing all of them, if possible.  Does MacApp itself depend
on any segment being a certain # (besides segment 0 and 1)?

Thanks,

Mark
-- 
---------------------------------
Mark Dawson                Service Diagnostic Engineering
AppleLink: Dawson.M

Apple says what it says; I say what I say.  We're different
---------------------------------