[NTLK] Developer news...

Matthias Melcher m.melcher at robowerk.de
Mon Mar 9 08:14:27 EDT 2020


Thanks Steven for trying that out.

I am not sure if that will help, but emulated memory in mosrun is set to 2MB right now. If you could go into mosrun/main.h and change the line

const unsigned int kMosMemMax        = 2*1024*1024;  // Size of emulated RAM

to

const unsigned int kMosMemMax        = 16*1024*1024;  // Size of emulated RAM

and recompile and copy the program to your path again. I will also change that in the repo. If it still runs out of memory, then something else is broken and I have to dig deeper.

 - Matthias

> On Mar 8, 2020, at 05:42, Steven Frank via NewtonTalk <newtontalk at newtontalk.net> wrote:
> 
> Mine was grinding away for a while but failed with an out of memory (?!) error on the Voyager driver:
> 
> --------
> mosrun ---run ../NewtonDev/C++/For\ MPW/•\ Put\ into\ MPW\ folder\ •/NCT_Folder/Tools/ARMCpp TSerialChipVoyager.cp -facqy -zo -W -cfront -d hasPCMCIA -d forARM -d TARGET_OS_NEWTON -d NO_ERRNO_H -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Bootstrap:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:CLibrary:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:CommAPI:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Communications:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Frames:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:HAL:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:OS600:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Packages:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Power:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Printing:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:QD:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:Toolbox:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:UtilityClasses:" -i "::NewtonDev:C++:NCT_Projects:DDKIncludes:PCMCIA:" -i "::NewtonDev:C++:NCT_Projects:Includes:" -i "::NewtonDev:C++:NCT_Projects:Includes:Frames:" -i "::NewtonDev:C++:NCT_Projects:Includes:Utilities:" -i "::NewtonDev:C++:NCT_Projects:Includes::NSandDDK:" -i "::" -o TSerialChipVoyager.o
> MOSMalloc failed: out of memory
> Assertion failed: (0), function mosMalloc, file /Users/stevenf/Documents/Source/matthiaswm-mosrun/memory.cpp, line 112.
> make: *** [TSerialChipVoyager.o] Abort trap: 6
> make: *** Deleting file `TSerialChipVoyager.o'
> --------
> 
> So, I got close!  Any idea what this out of memory error is all about?  I have 32 GB  :D
> 
> Steven
> 
> 
> ----------------------------------------------------------------------
> 
> http://newtontalk.net/
> http://twitter.com/newtontalk




More information about the NewtonTalk mailing list