public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Bier Meister <bier.meister@freenet.de>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] comiling and running 'hello world'
Date: Thu, 16 Oct 2003 08:53:00 -0000	[thread overview]
Message-ID: <3F8E5C83.2070206@freenet.de> (raw)

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

             reply	other threads:[~2003-10-16  8:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-16  8:53 Bier Meister [this message]
2003-10-16 12:03 ` Gary Thomas
     [not found]   ` <3F8E8BF6.10109@freenet.de>
2003-10-16 12:29     ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F8E5C83.2070206@freenet.de \
    --to=bier.meister@freenet.de \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).