public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] comiling and running 'hello world'
@ 2003-10-16  8:53 Bier Meister
  2003-10-16 12:03 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Bier Meister @ 2003-10-16  8:53 UTC (permalink / raw)
  To: ecos-discuss

Hi,

I compiled the 'hello world!' example from the eCos 2.0 user guide using 
the following command:
(my current directory is <proj>/proj_install/lib)

arm-elf-gcc -g -I ../include/ hello.c -L ./ -Ttarget.ld -nostdlib

I try to run it in the simulator using the following command: $ 
arm-elf-gdb -nw a.out

The result is this output and thats it. i can only stop gdb using ctrl+c


$ arm-elf-gdb -nw a.out
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .rom_vectors, size 0x40 vma 0x8000
Loading section .text, size 0xfcfc vma 0x8040
Loading section .rodata, size 0x310 vma 0x17d3c
Loading section .data, size 0x330 vma 0x1804c
Start address 0x8040
Transfer rate: 531424 bits in <1 sec.
(gdb) run
Starting program: 
/home/bcsdohi/programming/1610hello/hello_install/lib/a.out
*sim: unknown SWI encountered - ffffff - ignoring*





However, if i issue the comiple command : $ arm-elf-gcc -g -I 
../include/ hello.c -L ./
and then try to debug the executable in the simjulator, it works just fine.


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-16 12:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16  8:53 [ECOS] comiling and running 'hello world' Bier Meister
2003-10-16 12:03 ` Gary Thomas
     [not found]   ` <3F8E8BF6.10109@freenet.de>
2003-10-16 12:29     ` Gary Thomas

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).