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.

  1. write script yourself, take output of gcc preprocessor input, , replace # 1 #line 1, named myscript.
  2. write script automatically call gcc preprocesss first ,and call script myscript.
  3. name above script in step 2--gcc, put in local path.

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -