Using APP2COFF

Top  Previous  Next

First, build your Diamond application in the usual way, making sure that all the tasks are linked against the stand-alone library and that you use the -a switch when configuring. For example, assume that the configuration file myprog.cfg contains:

 

PROCESSOR root SMT376_6711_128

PROCESSOR node SMT376_6711_256

WIRE      ? root[CP:1] node[CP:4]

TASK      main  data=1M   ins=1 outs=1

TASK      other data=256K ins=1 outs=1

CONNECT   ? main[0] other[0]

CONNECT   ? other[0] main[0]

PLACE     main root

PLACE     other node

 

You can build an application like this:

 

» 3L C  main.c

» 3L TA main

» 3L C  other.c

» 3L TA other

» 3L A  myprog -a

 

You then use App2Coff, giving the base name of the application file (the filename without the .app extension) and the type of the root processor. This is the same as the processor type you give for the root processor in the configuration file.

 

 

App2Coff file processor-type

 

Continuing the previous example, you could build the COFF file myprog.out from the application myprog.app with the command:

 

» App2Coff myprog SMT376_6711_128