Read tool parameters from a file
Posted: Wed Aug 05, 2009 4:38 pm
I'm having a problem, I am using tools to run compilers for C source code. The problem I am having is that depending on the processor and other variables the parameters that are required for the tool are different. Is there any way that I can read these parameters out from a file, that way I can consolidate all my tools into one and have different read files for each source code. This would be preferable to have multiple tools. Also there are multiple users in our group and the tools need to be set up for each user and if the parameters change or we need a new tool created then some users are using the old parameters.
An example of my tool looks like this:
An example of my tool looks like this:
Code: Select all
Command: cmd.exe
Parameters: pic30-gcc.exe -mcpu=30F6010A -c -x c $filename -o $BaseName.o -g -Wall -save-temps && pic30-objdump -S $BaseName.o >$BaseName.lst && pic30-gcc.exe -Wl,"$BaseName.o",-L"%PROJECTS%\CommonCode\PIC",-L"%PROJECTS%\CommonCode\SlideoutCommonFiles",--script="$BaseName.gld",-o"$BaseName.cof",-Map="$BaseName.map",--report-mem,--no-isr && pic30-bin2hex.exe $BaseName.cof -a
Initial Folder: $FileDir