Newsgroups: comp.sources.wanted Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!bloom-picayune.mit.edu!news From: chasman@athena.mit.edu (David Chasman) Subject: OVERLAY OF DATA IN MSC 5.1 UNDER RTLINK Message-ID: <1991Jun27.185403.15238@athena.mit.edu> Keywords: RTLINK, MICROSOFT C 5.1 Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Date: Thu, 27 Jun 91 18:54:03 GMT Lines: 42 I am trying to overlay data in microsoft c 5.1 under rtlink (I am using the large memory model ) the essence of the problem : --------------------------------------------- file 1: float var1[N1]; main1(){ /* references to var1 */ } ----------------------------------------------- file 2: float var2[N2]; main2(){ /* references to var2 */ } ----------------------------------------------- file 3: float var_main[N_MAIN]; main(){ main1(); main2(); } ----------------------------------------------- I want main1() and var1 to be in the overlay main1.ovl I want main2() and var2 to be in the overlay main2.ovl I want var_main and main() to be in the root. (1) could you send me the compiler command lines and (2) the rtlink (freeformat) command lines ? I will be very greatful. --David Chasman