|
One User Task |
Top Previous Next |
|
We have already seen how to configure applications consisting of a single user task. It may be useful, however, to take a closer look at what happens when we do this. The example program we have chosen just converts a stream of characters read from stdin to upper case. Here is the C source file, upper.c, for the upper case program:
#include <stdio.h> #include <ctype.h> main() { int c; while ((c = getchar()) != EOF) { putchar(toupper(c)); } }
An appropriate configuration file, upper.cfg, could be the following:
processor root type=SMQ_DSP DEVICE=1 task upper data=? place upper root
As we have seen, we could build and run an application from this source file (and a suitable configuration file) with commands similar to the following:
» 3L c upper.c » 3L t upper » 3L a upper » 3L x upper case changer CASE CHANGER …
The next section looks into the configuration file in more detail. |