HCS08 compiler options in a file

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HCS08 compiler options in a file

1,665 Views
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

Labels (1)
Tags (1)
0 Kudos
Reply
2 Replies

1,127 Views
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 Kudos
Reply

1,127 Views
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 Kudos
Reply