HCS08 compiler options in a file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HCS08 compiler options in a file

1,724 次查看
italiandoh
Contributor III

I would like to invoke the compiler in batch mode passing all the options from a single text file, for example:

 

chc08.exe -options_file ComOpt.txt

 

I searched the documentation and the forum but I couldn't find a way to do this. Is it possible as far as you know ?

I cannot pass all the options directly on the command line because in some projects we have a large number of included paths and this leads to exceeding the limit of characters for a windows command line.

Thanks,

 

Matteo

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,186 次查看
stanish
NXP Employee
NXP Employee

Hello Italiandoh,

 

If you use CodeWarrior for MCUs v10.x (Eclipse) you can use -ArgFile

Considering that a file named option.txt is used  then chc08.exe –ArgFileoption.txt command line.

 

In the CodeWarrior for MCUs v6.x (Classic) the following environment variables can be used to pass additional command line options:


* COMPOPTIONS: additional compiler options
* GENPATH: #include "File" Path
* LIBRARYPATH: 'include <File>' Path
* TEXTPATH: Text File Path
* ABSPATH: Absolute Path
* LINKOPTIONS: Default SmartLinker Options
* OBJPATH: Object File Path

 

Stanish

0 项奖励
回复

1,186 次查看
italiandoh
Contributor III

Hi Stanish,

thank you for your reply. Unfortunately I'm using Codewarrior for Microcontrollers V.6.2, so from what you're saying I see there isn't really a solution for my problem.

Bye,

 

Matteo

0 项奖励
回复