public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] string constant byte ordering
@ 2004-04-15 16:05 Zhao Luo
  0 siblings, 0 replies; only message in thread
From: Zhao Luo @ 2004-04-15 16:05 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 1070 bytes --]

I met a problem with string constant byte ordering
when I am porting redboot to a net silicon(arm) board.


When I load the image, all the string constants are
put in little endian format in memory, for example, 
 A string is defined as char str[] = “ABCD”, when I
examine the memory, from the lower address it is
“DCBA”, however, if I look at objdump of the code, it
is ABCD, If I do “p str” in GDB then it shows “ABCD”,
I change the definition in cyg/hal/basetypes.h, but it
doesn’t seem to have effects.
The code is running. There is no obvious anomaly other
than this. I am using JEENI and gdb. I am suspecting
it is a gdb/JEENI loading issue. But I have no idea
where I should start with.

Could some one give me some idea? I really appreciate
the help.

Thanks

Zhao


	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-15 15:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-15 16:05 [ECOS] string constant byte ordering Zhao Luo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).