How to change GCC preprocessor output format? -
how can change gcc preprocessor (cc1.exe) output format:
#line 1 "path/to/file.c"
currently, getting format:
# 1 "path/to/file.c"
it states here output #line
directive, getting different output format. there parameter option need use?
simplest answer, write script process file generated gcc preprocessor stasfy requirement.
- write script yourself, take output of gcc preprocessor input, , replace
# 1
#line 1
, namedmyscript
. - write script automatically call gcc preprocesss first ,and call script
myscript
. - name above script in step 2--
gcc
, put in local path.
Comments
Post a Comment