[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] How could I use libtcc as backend for preprocess purpose
From: |
Мельников Алексей |
Subject: |
[Tinycc-devel] How could I use libtcc as backend for preprocess purpose only? |
Date: |
Mon, 07 Mar 2016 00:22:02 +0300 |
Hello.
Excuse me, how could I use libtcc as backend for preprocess purpose?
I have tested mode 'tcc -E'. It works. So, I think this functionality is
available.
But I need dynamically load c-file with preprocess macros. And I need to get
program text after preprocess work only.
I have two ideas what to do:
1.use tcc_set_output_type(s,TCC_OUTPUT_MEMORY) with tcc_set_options(s,"*")
* - some options like flag -E
2. use tcc_set_output_type(s,TCC_OUTPUT_PREPROCESS)
I will be grateful advices and examples.
Thank You in advance.
Alex Melnikov
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Tinycc-devel] How could I use libtcc as backend for preprocess purpose only?,
Мельников Алексей <=