10.6.3. Compiling, linking, and running the program

Follow these steps to compile and link the program:

  1. Compile print.c by typing:

    armcc print.c  (ARM)

    tcc print.c    (Thumb)

  2. Assemble startup.s by typing:

    armasm startup.s  (ARM)

    armasm -16 startup.s    (Thumb)

  3. Type:


    armlink -o print.axf -info totals startup.o print.o
    c:\ARM250\lib\embedded\armlib_cn.32l

    or, for Thumb:


    armlink -o print.axf -info totals startup.o print.o
    c:\ARM250\lib\embedded\armlib_i.16l

  4. Start armsd, ADW, or ADU and type the following on the command line:


    load print.axf
    go

Copyright © 1997, 1998 ARM Limited. All rights reserved.ARM DUI 0040D
Non-Confidential