|
|
Programming API for the compiler? |
|
Author |
Message |
PLESEHELPMEXXriel117yahoocouk

|
Posted: Tue Aug 10 13:21:58 CDT 2004 |
Top |
Net Framework >> Programming API for the compiler?
Actually I'd like a way to programmatically execute the pre-processor.
Anybody know if there's a way?
And no, I don't mean running CL.exe via Process.Start(), I can do that
already.
thanks,
-- kov
DotNet129
|
|
|
|
 |
Niki

|
Posted: Tue Aug 10 13:21:58 CDT 2004 |
Top |
Net Framework >> Programming API for the compiler?
AFAIK the MS C++ compiler does not have any "API" that you could use from
outside. Only command-line.
However, you could probably "dissect" some open-source C compiler and
extract the preprocessor, if you need to call it in-process.
Niki
> Actually I'd like a way to programmatically execute the pre-processor.
> Anybody know if there's a way?
>
> And no, I don't mean running CL.exe via Process.Start(), I can do that
> already.
>
> thanks,
>
> -- kov
>
>
|
|
|
|
 |
Severian

|
Posted: Wed Aug 11 06:03:43 CDT 2004 |
Top |
Net Framework >> Programming API for the compiler?
>Actually I'd like a way to programmatically execute the pre-processor.
>Anybody know if there's a way?
>
>And no, I don't mean running CL.exe via Process.Start(), I can do that
>already.
I have seen a sourceforge C/C++ callable assembler, though it's more
than a pre-processor. I don't remember its name, but it looked pretty
useful for some situations. It may or may not apply to your situation.
http://sourceforge.net/projects/softwire/
I'm sure there are C/C++ compatible preprocessors there as well.
--
Sev
|
|
|
|
 |
|
|