Re: Array access at fixed memory address



In article <GFqNj.2941$h75.2030@xxxxxxxxxxxxxxxxxxxxxxxxxx>, Vladimir
Vassilevsky says...


goodTweetieBird wrote:

I am developing some code that uses a two dimensional array as well as
an array of structs. It was no problem to set it up in static memory
of the system's choosing. Now I must move them to a specific physical
address to use non-volatile ram. Is there a set of standard idioms for
accessing muli-dimentioned arrays and arrays of structs tied to a hard
address? Perhaps it is similar to accessing structures in malloc'ed
memory.

There is no universal way. The implementation of the multi dimensional
arrays depends on the compiler.

The size if the array elements depends somewhat on the compiler. The
layout of those elements in memory does not.

Robert
** Posted from http://www.teranews.com **
.



Relevant Pages

  • memory leak in (?)... (redux)
    ... the mem leaks in our long-running tcl daemons. ... when actively exercised the app grows continuously. ... the mystery is that while our audit code does show us a couple of arrays ... and memory are checked and meanwhile externally, ...
    (comp.lang.tcl)
  • Re: implementing an array based class
    ... Arrays take about 20 times less memory than structs or MyObject. ...
    (comp.lang.ruby)
  • Re: StackOverflowException.
    ... The Status object monitors the ... so I'm really at a total loss as to where I'm leaking stack memory. ... private static extern bool EscapeCommFunction(IntPtr hFile, ... Good to know about arrays. ...
    (microsoft.public.dotnet.framework)
  • Re: Strategy for caches & GC
    ... I end up writing manual allocators for byte arrays. ... memory to insure it sits in the LOH and suballocate from there (ala ... ArraySlicehandle to work with buffers. ... and manual management for memory and GC generation 0 for efficient ...
    (microsoft.public.dotnet.framework.clr)
  • Re: perl eating up memory slowly until program stops - any ideas ?
    ... Arrays are created, variables are set, ... For lexical scoping, a single chunk of memory, reserved by ... Private blocks, you have discussed this a number of times ...
    (comp.lang.perl.misc)