diff options
author | oharboe <oharboe> | 2008-08-21 21:12:57 +0000 |
---|---|---|
committer | oharboe <oharboe> | 2008-08-21 21:12:57 +0000 |
commit | 952bcd56f3b4e412594920ef02d9d740b3ce119a (patch) | |
tree | c48edb837f7a771f7c7d18c74d97760b92e6b981 /zpu/sw | |
parent | 16b20b21e402e6463b89f5a942073f19daaaecb8 (diff) | |
download | zpu-952bcd56f3b4e412594920ef02d9d740b3ce119a.zip zpu-952bcd56f3b4e412594920ef02d9d740b3ce119a.tar.gz |
merging in some docs to zpu_arch.html
Diffstat (limited to 'zpu/sw')
-rw-r--r-- | zpu/sw/helloworld/gccgdb.PNG | bin | 34473 -> 0 bytes | |||
-rw-r--r-- | zpu/sw/helloworld/zpusim.PNG | bin | 17817 -> 0 bytes | |||
-rw-r--r-- | zpu/sw/index.html | 44 |
3 files changed, 0 insertions, 44 deletions
diff --git a/zpu/sw/helloworld/gccgdb.PNG b/zpu/sw/helloworld/gccgdb.PNG Binary files differdeleted file mode 100644 index afdfc31..0000000 --- a/zpu/sw/helloworld/gccgdb.PNG +++ /dev/null diff --git a/zpu/sw/helloworld/zpusim.PNG b/zpu/sw/helloworld/zpusim.PNG Binary files differdeleted file mode 100644 index d8fc277..0000000 --- a/zpu/sw/helloworld/zpusim.PNG +++ /dev/null diff --git a/zpu/sw/index.html b/zpu/sw/index.html deleted file mode 100644 index fd0a1b4..0000000 --- a/zpu/sw/index.html +++ /dev/null @@ -1,44 +0,0 @@ -<html> -<body> -<h1>Getting started - a ZPU hello world program</h1> -The ZPU comes with a standard GCC toolchain and an instruction set simulator. This allows compiling, running & debugging simple test programs. The Simulator has -some very basic peripherals defined: counter, timer interrupt and a debug output port. -<h2>Installing</h2> -<ol> -<li>Install Cygwin. http://www.cygwin.com -<li>Install Java -<li>Start Cygwin bash -<li>cd zpu/sw -<li>sh setup.sh -<li>/tmp/zpu/install/bin now has the .exe files for the GCC toolchain & GDB -<li>Optionally you may set up PATH variables to point to /tmp/zpu/install/bin<br> -source env.sh -</ol> -<h1>Hello world example</h1> -The ZPU toolchain comes with newlib & libstdc++ support which means that many C/C++ programs can be compiled without modification. -<p> -<code> -cd zpu/sw/helloworld<br> -../install/bin/zpu-elf-gcc -phi hello.c -o hello.elf <br> -</code> -<h2>Running the hello world example in GDB</h2> -<ol> -<li>cd zpu/sw/helloworld -<li>Launch the simulator from a seperate bash shell:<p> -java -classpath ../simulator/zpusim.jar -Xmx512m com.zylin.zpu.simulator.Phi 4444 -<p> -<img src="helloworld/zpusim.PNG" border=0> -<li>Launch GDB:<p> -../install/bin/zpu-elf-gdb hello.elf -<li>Connect to target, load and run application:<p> -<code> -(gdb) target remote localhost:4444<br> -(gdb) load<br> -(gdb) continue<br> -</code> -<p> -<img src="helloworld/gccgdb.PNG"> - - -</body> -</html> |