ts-7000
[Top] [All Lists]

Re: [ts-7000] pointer weirdness

To:
Subject: Re: [ts-7000] pointer weirdness
From: David Hawkins <>
Date: Wed, 12 Sep 2007 10:38:28 -0700
Hi Yan,

> I get the values I would expect when I cast
> everything to uint32_t but uint16_t types
> *always* start with 0x8c.  

It could be due to access of a 16-bit only,
or 32-bit only register using smaller values.

Run your test on an address in SDRAM which has
all 32-bits working, and byte-enables working,
and see if you get identical results.

Also add some variables to your code to store
the casted values, and call them volatile,
just to force the compiler to leave them alone
for the purposes of this test.

I had a problem once with an x86 host performing
read-modify-write operations using an I/O register,
when it really should have been using a
processor register; so optimization may cause you
to see a different result too.

Look at the assembler code if its a small program,
or you can easily isolate the code section. It'll
show you whether 8-bit/16-bit/32-bit instructions
are being used for a particular piece of code.

Cheers,
Dave


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU