nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

memory alignment problem

Von: Dharma (baladharma@gmail.com) [Profil]
Datum: 18.01.2008 13:49
Message-ID: <f3c8e3e2-34b3-4d1d-bc4e-c72001468557@e25g2000prg.googlegroups.com>
Newsgroup: alt.os.development
Hi all,
I have a doubt. I will explain with a scenario.

void func(void *p)
{
word *a = (word *)p;

printf("%S",a);
}

in the above function , if the value of p is even address , there is
no problem, but it is odd address it is crashing in arm. what could be
the reason?...
I know it is wrong but iam eager to know the cause. will this problem
happen in all the processor?
if the processor is 32 bit.

Regards,
Dharma

[ Auf dieses Posting antworten ]

Antworten