I don't know if the issues are the same for 64-bit mappings as they are for files larger than 2 GB, but there probably are things in common.
In any case, I just wrote up a Wiki page detailing use of Dave Mitchell's "bigfiles.ijs" functions in an example application "breakupBigFiles2CD.ijs". The page is at http://www.jsoftware.com/jwiki/Scripts/Working_with_Big_Files. Anyone who's interested should take a look to see if this helps with the 64-bit mapping issues. On 1/19/07, Eric Iverson <[EMAIL PROTECTED]> wrote:
With a 64bit processor (AMD 64bit or Intel EMT) and a 64bit OS (Linux64 or Windows XP64) you can work with J nouns that are larger than 2GB. This solves your current problem. You should also be able to map a file that is larger than 2GB. Ansii indicates this doesn't work but I am confident that all that is required is some simple changes in jmf.ijs to support 64 bit mappings and views. I may get around to fixing this or it could be a good exercise for the reader that was then handed back as a contribution to the J community. ----- Original Message ----- From: "Michael J. A. Berry" <[EMAIL PROTECTED]> To: "'Programming forum'" <[email protected]> Sent: Thursday, January 18, 2007 11:09 AM Subject: RE: [Jprogramming] Bad view? >I figured out what the problem was. I was using the dyadic map_jmf_ as >you > suggest in order to map existing large character files. The problem > was that > I tried to map several files which in aggregate when combined with my > regular in-memory variables, were too big for the virtual address > space. I > am using the 32-bit windows implementation. Any one of my files can > be > mapped fine, but the mappings fails with the "bad view" message on > whichever > file is the final straw. > > > > Could someone confirm for me that if I purchase a 64-bit machine and > run the > 64-bit J, I will be able to map more than 2^31 bytes? > > > > -Michael > > > > > > -----Original Message----- > From: Dan Bron [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 17, 2007 6:11 PM > To: 'Programming forum' > Subject: RE: [Jprogramming] Bad view? > > > > Michael, > > > > Instead of: > > > > map_jmf_ 'NAME_locale_';'filename' > > > > use: > > > > JCHAR map_jmf_ 'NAME_locale_';'filename' > > > > I'm speculating, in the context of your description, that the error > message > means that yours is not a valid JMF file. > > > > Monad map_jmf_ expects the file to contain a valid JMF header, and > points > the symbol table entry to the first byte in the file. > > Dyad map_jmf_ creates a JMF header in memory, points the symbol > table > entry at that address, and points the JMF header to the > > first byte in the file. > > > > Report back to the Forum if the suggestion does not solve the problem. > > > > -Dan > > > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- Devon McCormick ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
