Technical Support

A51: INCDIR DIRECTIVE


Information in this article applies to:

  • C51 Version 6.00

QUESTION

Is there an INCDIR directive for the assembler so I can specify where my include files reside?

ANSWER

Yes. This has been added in the V6 release of the C51 toolset.

With INCDIR (abbreviation ID) you can supply one or more paths to search for when a $INCLUDE (file) directive is processed. For example:

$INCDIR (C:\C51\ASM)
.
.
.
; Your Assembly Source File
.
.
.

or on the command line:

A51 STARTUP.A51 INCDIR (C:\C51\INC,C:\MYDIR)

The search order for the $INCLUDE directive is:

  • Current directory (typically the folder of the µVision project file).
  • Paths specified with $INCDIR.
  • Path derived from the bin directory with ..\asm path (this is C:\Keil\C51\Asm in default installations).

Last Reviewed: Monday, April 25, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure