Page 1 of 1

target sim, where does output go?

Posted: Thu May 29, 2008 12:40 am
by xyxxx
We intend to use arm-eabi-gcc under Windows. We seem to have installed, and can at least compile a simple hello world program. However, we are unclear how to see the output. We've run arm-eabi-gdb a.out, done a 'target sim' and then a run, however, (1) there is never anything output and (2) the application never seems to terminate. Looking at say http://www.drrtos.org/downloads/GettingStarted.pdf implies it is at least possible with other gnu based arm compilers and affiliated gdb's. Do we need to arm-eabi-gcc with a certain option under this gcc variant? TIA.

Re: target sim, where does output go?

Posted: Sun Jun 01, 2008 9:09 pm
by xyxxx
Are we the only ones not getting stdout/stderr output from target sim?

Re: target sim, where does output go?

Posted: Tue Jun 03, 2008 1:18 am
by WinterMute
I'll have a look at this soon, this is because devkitARM is built with --disable-newlib-supplied-syscalls and uses a pseudo device API to connect up output & storage devices. The current default stdio hooks in libsysbase are null devices so I might take a look at using a different default libgloss layer which falls back to the old code used for newlib supplied syscalls. Apologies for the confusion.

Re: target sim, where does output go?

Posted: Wed Jun 04, 2008 10:32 pm
by xyxxx
Ok, thanks. We have since downloaded Sourcery for ARM's gcc, and it exhibited the same problem until we figure out have to specify a -T option for a "basic" linker script that target sim liked. We will play around with this and devkitARM this week and see if it helps, although if we understand you, the output we're trying to establish is dummied out, so we won't break out neck trying to do it beyond a quick try :)

BTW, don't have the install in front of me, but there is some sort of libsim.a (not the exact name) high'ish up in the install tree somewhere. What is that for?

Re: target sim, where does output go?

Posted: Sat Jul 05, 2008 3:32 am
by xyxxx
Any progress in resolving this? TIA.

Re: target sim, where does output go?

Posted: Sun Jul 20, 2008 11:45 pm
by xyxxx
Any feedback on this would be appreciated, thanks.