Re: [Tuxnes-devel] Use of mmap ()
Brought to you by:
tmmm
From: Mike M. <mel...@pc...> - 2002-05-14 20:38:33
|
On Tue, 14 May 2002, W. Michael Petullo wrote: > The comment makes me wonder why malloc was not used. I am not familiar > with the MAP_ANON option. > > Also, in mapper.h things like _RAM point to hard-coded addresses, in > this case 0x10000000. Again, why is this done? GNU as will assume that > undefined variables are, to use C's syntax, extern, so _RAM could just > be defined as a char * in mapper.c. The best answer for all of your questions is: "Because that's the way quor originally wrote Nestra." It's the kind of thing that worked and no one ever really understood it or had a reason to try to change it, even though they had an inkling that it may not have been the most rational thing to do. > I'm trying to get the dynrec. code to lay nicely with my new emulator > interface. Do what it takes. If you haven't noticed, you're currently the primary contributer to TuxNES...:) Thanks... -- -Mike Melanson |