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.