Re: Games made with BBC BASIC for Windows



On Oct 23, 9:20 pm, Rob Kendrick <n...@xxxxxxxx> wrote:
Well, things like memory allocation, string handling, file access, data
structures, socketing, etc - all these can be made much easier to use
should you use an off-the-shelf library.  I assume you've implemented
many of them yourself.

Memory handling, string handling and data structures are part of BBC
BASIC, so they don't depend on OS features or libraries. Well, that's
not quite true: they assume that the OS can allocate one big
contiguous chunk of virtual memory.

Actually (and I'll probably regret mentioning this) Linux isn't as
good at that as Windows. Under Windows BB4W can always succcessfully
allocate 256 Mbytes of contiguous virtual address space (actual memory
used is of course typically very much less) but for some reason Wine
often refuses to allocate that much.

When I investigated some time ago it seemed to be because Wine doesn't
fully support the distinction between the MEM_COMMIT and MEM_RESERVE
options of VirtualAlloc, presumably because of some limitation in
Linux. BB4W relies on being able to "Reserve a range of the process’s
virtual address space without allocating any physical storage".

Richard.
http://www.rtrussell.co.uk/
To reply by email change 'news' to my forename.

.



Relevant Pages

  • Re: VirtualAlloc()
    ... large/global memory usage instead of "new". ... allocate physical storage. ... uses `VirtualAlloc'. ...
    (microsoft.public.vc.language)
  • Re: Sudden decrease in available virtual address space
    ... a loss of available memory in the kernel. ... little application that does the same GlobalMemoryStatus and see if it exhibits the same ... >VirtualAlloc, GlobalAlloc, HeapAlloc, LocalAlloc, GlobalReAlloc, ... All the memory that we allocate ...
    (microsoft.public.vc.mfc)
  • Re: Wince address space allocation
    ... malloc allocates memory from your process' heap which is created by ... the kernel within the RAM memory region specified in the MEMORY ... You do not need to do anything else to allocate cacheable memory for ... returned by virtualalloc, it remains the same as returned by normal ...
    (microsoft.public.windowsce.platbuilder)
  • Re: VirtualAlloc or LocalAlloc? Plz Help
    ... the size you need to allocate and how you use the memory you have allocated. ... virtual space which could be process's free virtual space (in 32MB prcess ... VirtualAlloc() to allocate memory from virtual space. ...
    (microsoft.public.windowsce.platbuilder)
  • Tru64 issues with Infinite limits
    ... An automated test in my nightly build was failing due to Out of Memory ... Cannot allocate block 146 ...
    (comp.unix.tru64)