This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
> From: Sean Kelley <skelley@planetkc.com> > 2) Does the gdb build include a type of ARMulator for simulating > the arm code? How is the code simulated? > I use arm-coff on x86-linux. Here is what I do: 1. Make a file called "hello.c" #include <stdio.h> int main() { printf("hello\n"); return(0); } 2. Compile the program % arm-coff-gcc hello.c -o hello The linked executable will be in a file called "hello" 3. Disassemble the program % arm-coff-objdump -d hello 4. Simulate the program using the Armulator % arm-coff-run hello hello 5. Debug the program using the Armulator % arm-coff-gdb hello (gdb) file hello Reading symbols from hello...done. (gdb) target sim Connected to the simulator. (gdb) load Loading section .text, size 0x9480 vma 0x8000 Loading section .data, size 0xad4 vma 0x40480 Start address 0x8000 Transfer rate: 326304 bits in <1 sec. (gdb) run Starting program: hello hello Program exited normally. ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |