Path: utzoo!attcan!uunet!samsung!usc!apple!marc From: marc@Apple.COM (Mark Dawson) Newsgroups: comp.sys.mac.programmer Subject: preloading CODE/linker/MacApp question Message-ID: <42802@apple.Apple.COM> Date: 9 Jul 90 13:08:25 GMT References: <1032@swan.ulowell.edu> <36690003@hpindwa.HP.COM> <25974@pasteur.Berkeley.EDU> <1990Jul9.104648.23538@santra.uucp> Organization: Apple Computer Inc, Cupertino, CA Lines: 24 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 ---------------------------------