Re: Array access at fixed memory address
- From: Robert Adsett <sub2@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 16 Apr 2008 18:36:23 -0400
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 **
.
- Follow-Ups:
- Re: Array access at fixed memory address
- From: Vladimir Vassilevsky
- Re: Array access at fixed memory address
- References:
- Array access at fixed memory address
- From: goodTweetieBird
- Re: Array access at fixed memory address
- From: Vladimir Vassilevsky
- Array access at fixed memory address
- Prev by Date: Re: Learn RTOS
- Next by Date: Re: Array access at fixed memory address
- Previous by thread: Re: Array access at fixed memory address
- Next by thread: Re: Array access at fixed memory address
- Index(es):
Relevant Pages
|
|