home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,815 of 4,255   
   mutazilah@gmail.com to James Harris   
   Re: PDOS/86   
   24 Aug 21 16:25:17   
   
   From: muta...@gmail.com   
      
   On Wednesday, August 25, 2021 at 3:31:28 AM UTC+10, James Harris wrote:   
      
   > >> The reason I'm asking is because I'm trying to address   
   > >> James's query - why aren't MVS load modules designed   
   > >> to have a totally separate code section compared to   
   > >> the data section?   
   > >   
   > > Define code and define data. Example: a CCW.   
      
   > Butting in, why not make the distinction be between ro/invariant and   
   > rw/instance-specific?   
      
   Butting in myself - for each instance of data, the code   
   also needs to be adjusted to reference that "relocated"   
   data.   
      
   E.g.   
      
   char buf[50];   
   strcpy(buf, "hello\n");   
   printf(buf);   
      
   That printf (code) needs to reference some global variable   
   (data). So if an instance has the data located at a new   
   address, the code references all need to be updated too,   
   if you're using a flat model. Right?   
      
   Unless we're talking about multitasking in which case   
   each task can have the code at the same address and   
   an expectation that the data reside at the same virtual   
   address too.   
      
   That sounds like a big ask though.   
      
   I've avoided such considerations to date by focusing on   
   single-tasking.   
      
   BFN. Paul.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca