This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: how to build an eCos library for ARM7tdmisimulator


On Tue, 3 Sep 2002, Tim Drury wrote:

> Robert Cragie wrote:
> > Further to my original message, I have now run through it step-by-step doing
> > a clean install. There were some issues with the original text, so I have
> > updated it. I am in the process of doing an SGML version.
> 
> Robert,
> 
> Thank you! Thank you! I followed your process exactly and it worked.
> I also tested against my own 'hello world' program.


Great! FYI, I invoke SID like this:


$ arm-elf-sid --cpu arm --memory-region=0x2020000,0x2000000  \
--memory-region=0xfffe0000,0x1ffff --gdb=2000 --gprof --trace-counter \
--insn-count=1 -EL my_arm_executable

You can either run this in the background or from another window fire up 
gdb:

$ arm-elf-gdb  my_arm_executable

And within gdb:

 (gdb) target remote localhost:2000
 (gdb) load
 (gdb) break main
 (gdb) cont


A couple of comments:
 1) The memory region matches the EB40 except that it's extended (I have
    more flash).
 2) I've got SID profiling the code by counting *every* instruction. 
    (--insn-count=1 specifies this). Consequently the simulation is
    rather slow ~5 million instructions per minute or so on a Athlon 1800.
 3) The --gprof collects profiling information.

If you want to analyze the profiled results: 

$ arm-elf-gprof --flat-profile my_arm_executable


Scott


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]