Current Directory: | CD-ROM Root / examples / intro • View as a list of files. |
---|---|
Quick Links: | CD-ROM Root • unsw • gnutools • xilinx • examples • reference • board • utils |
The examples/intro directory contains sample files that you can use to learn about the GNU Assembler and the GNU Debugger. You should look at these files in conjunction with reading An Introduction to the GNU Assembler and An Introduction to the GNU Debugger. Please note that you will need to have Adobe Acrobat Reader (or another PDF viewer) installed on your computer to read these documents.
You use the files in this directory by reading through each of them in the order presented below (in the Directory Contents section), then copying the files into your own directory, compiling them and running them through the GNU Debugger. You would do this by typing something like the following at the Linux shell prompt:
$ | mkdir ~/intro | # Create a directory to hold the files |
$ | cp /mnt/cdrom/examples/intro/* ~/intro | # Copy all of the files from the CD-ROM |
$ | cd ~/intro | # Change to the new directory |
$ | chmod 644 * | # Make all of the files read/writable |
$ | make all | # Create the executable files |
$ | arm-elf-insight simple.elf & | # Use the GNU Debugger to run "simple.elf" |
$ | …and so on. |
Please note that the “$
” indicates the Linux
shell prompt: you don’t type it in. This set of commands also
assumes that you have already mounted this CD-ROM on your computer, and
that the mount point (where the CD-ROM can be found within the
file system) is /mnt/cdrom; see the instructions for mounting the
CD-ROM for more details.
CD-ROM Root Directory |
examples: Example files and templates |
intro: Sample projects used in the introductions to the assembler and debugger This is the current directory |
README.html: The file you are currently reading |
Makefile: Makefile for the Introductory files |
simple.s: A simple ARM assembly language program |
subr.s: Simple subroutines (function calls) |
values.s: Load constant values into registers, with ldr = |
pseudo.s: More information about pseudo-instructions for the ARM |
jumptbl.s: Multi-way branches and pointers to functions |
wordcopy.s: Copy an array of words stored in the .data section |
blockcopy.s: Copy an array en-masse, with stack pointer initialisation |
copy.s: Copy a NUL-terminated string to a buffer (assembler module) |
strcopy-a.s: String copy using multiple source files, using copy.s |
strcopy-c.c: Mixing C and assembler for string copy, using copy.s |