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 3,337 of 4,255   
   Joe Monk to All   
   Re: segmentation   
   22 Oct 22 13:35:43   
   
   From: joemonk64@gmail.com   
      
   > I didn't invent the term "huge pointer". It has a meaning   
   > distinct from "far pointer".   
   >   
      
   A huge pointer is just a normalized far pointer.  i.e.   
      
   char far *p =(char far *)0x55550005;   
   char far *q =(char far *)0x53332225;   
      
   "Physical Address = (value of segment register) * 0x10 + (value of offset).   
   Location pointed to by pointer 'p' is : 0x5555 * 0x10 + 0x0005 = 0x55555   
   Location pointed to by pointer 'q' is : 0x5333 * 0x10 + 0x2225 = 0x55555   
   So, p and q both point to the same location 0x55555."   
      
   0x55555 is the huge pointer.   
      
   Joe   
      
   --- 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