[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tsp-devel] Alignment error on VxWorks

From: Frederik Deweerdt
Subject: Re: [Tsp-devel] Alignment error on VxWorks
Date: Thu, 27 Nov 2008 15:43:04 +0100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hello Frédéric,

On Thu, Nov 27, 2008 at 03:11:18PM +0100, Frédéric Martinsons wrote:
>  Hi TSP,
> I have a list of differents kind of symbols (char ,int8, int16, double ....)
> to publish in the BB (under vxworks).Everything works fine until I want to
> access the pointers returned by bb_simple_publish and especially in a config
> like this (tab is an array of pointer on void):
> *(double*) tab[i] = a
> *(double*) tab[i+1]=b
> *(int16*)   tab[i+2]= c
> *(double*) tab[i+3]= d   <--- here is the line which throw "alignment error"
> No problem when there is an even number of int16 pointer .
> I remember (when I check the tsp-devel archive) , during the Rtems port ,
> there was a memory alignment probem.
> Do you think this is the same problem ?
That's not inherent to the BB, it has to do with you CPU. You're using a
SPARC right?
> I solved the issue in using only 32 or 64 bits symbols but this is not
> optimal.Any idea to make it better ?
I'm afraid you'll have to stick to manually align your symbols.
Alternatively, you extend bb_publish to handle alignement issues.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]