delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/01/10/09:54:53

Date: Tue, 10 Jan 95 09:29:58 -0500
From: dj AT stealth DOT ctron DOT com (DJ Delorie)
To: badcoe AT bsa DOT bristol DOT ac DOT uk
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, badcoe AT bsa DOT bristol DOT ac DOT uk

> So how's it done ?  How do I find the real-address of a protected-mode address ?

You don't.  The page lookup takes no extra time, so just use the
linear address space, not the real address space.  Pages aren't
allocated linearly anyway.

Have you actually looked at the code that "gcc -O3" produces for
foo[x][y] when the dimensions are 256x256?  It might already be
optimal - gcc is a real good optimizer.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019