FILE attribute

Top  Previous  Next

This attribute specifies the task image file where this task is to be found. CPU task image files are created by the linker.; FPGAs use FCD files. If a TASK statement has no FILE attribute, the configurer assumes that the task image file has the same name as the task, with the appropriate extension. This extension, called the task extension, depends on the processor type. On the C6000, for example, it is .tsk.

 

If the FILE attribute is present, its argument is either a string constant, which is the name of the task image file, or an identifier, to which the task extension is added to form the file name. For example, on the C6000, both the following tasks would be loaded from a task image file called myprog.tsk.

 

task abc file=myprog

task def file="myprog.tsk"

 

The configurer looks for the file first in the current directory, and then in every folder specified in the environment variable PATH. This search is not done if the file name is already a full pathname.

 

Suppose we have the this statement where there is no FILE attribute:

 

task this

 

Also, assume the PATH variable is defined as follows:

 

» set PATH=c:\mytasks;c:\dos;c:\tasklib

 

The C6000 configurer would search for the task image in the following files, in this order:

 

.\this.tsk

c:\mytasks\this.tsk

c:\dos\this.tsk

c:\tasklib\this.tsk