Can I use CCS macros, such as $(Install_dir), inside my *.opt (and *.cmd) files?
No. CCS macros are only supported in *.pjt files. How CCS macros work is CCS will read the *.pjt file and expand any CCS macros it recognizes before the executing a command such as a build request. For example, on a build command, if macros are used in the *.pjt file to specify include search paths: -i”$(Install_dir)\c6000\csl\include” CCS will read and expand this to (Assuming the CCS in use is installed in C:\CCStudio_v31): -i”C:\CCStudio_v31\c6000\csl\include” And pass this include search path to the compiler. However using macros in *.opt files will fail since *.opt files are never read by CCS (and never expanded) but simply passed to the compiler as a valid compiler option (-@”C:\myfile.opt”). Since the compiler does not understand the macro, the search path will not be valid. The same limitation applies for *.cmd files.