Mail Archives: djgpp-workers/2000/05/07/02:44:26
On Sun, 7 May 2000, Laurynas Biveinis wrote:
> > However, if alignment is the only difference between `valloc' and
> > `malloc', I don't quite see what's the big difference between them
> > that would explain such a huge run-time penalty. Can someone explain?
>
> Because they're used in two different GC implementations: gc-simple uses
> malloc and gc-page uses mmap or valloc.
It sounds like you could try to solve this by simply having the right
#define's in the system headers, to dupe the configure script into
thinking we have valloc. I suggest to see how well does this work.
As for mmap, it should be trivial to throw together a KISS[1]
implementation that simply reads the entire file into memory, and see
how well (or how badly ;-) does that work, especially with very large
sources.
[1] KISS = Keep It Simple and Stupid
- Raw text -