GCC Compiler in C# Application

G

Georgio

Hello Everybody,

I need your help.
I have wrote the C# Application which loads C-Files in a container. And nowI need to compile the code of this files with the help of GCC compiler andat the end to analyse the Coverage of the code with the help of GCOV.How can I implement this functions in my WinForms application?

Can somebody help me?

Thanks a lot,
with the best regards,
robert
 
A

Arne Vajhøj

I need your help. I have wrote the C# Application which loads C-Files
in a container. And now I need to compile the code of this files with
the help of GCC compiler and at the end to analyse the Coverage of
the code with the help of GCOV.How can I implement this functions in
my WinForms application?

The simple solution must be to put the source files in a temp dir and
call the compiler via Process.Start and read the output file.

If you need a more sophisticated solution then try to load the compiler
into your process and do a memory to memory compile.

Unless your application happens to be open source under GPL license,
then I recommend that you consult a lawyer with expertise in open
source software license - just in case someone would claim that
your code and GCC are combined to a whole.

Arne
 
G

Georgio

воÑкреÑенье, 5 ÑÐ½Ð²Ð°Ñ€Ñ 2014 г., 1:08:51 UTC+1 пользователь Arne Vajhøj напиÑал:
The simple solution must be to put the source files in a temp dir and

call the compiler via Process.Start and read the output file.



If you need a more sophisticated solution then try to load the compiler

into your process and do a memory to memory compile.



Unless your application happens to be open source under GPL license,

then I recommend that you consult a lawyer with expertise in open

source software license - just in case someone would claim that

your code and GCC are combined to a whole.



Arne

Hello Arne,

thank you very much for the answer.
I will do it!

Best regards,
Georgio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top