Current Directory: | ![]() ![]() |
---|---|
Quick Links: | ![]() |
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.
![]() |
![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() ldr = |
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() .data section |
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() |
![]() ![]() ![]() |