GCC Compiler in C# Application

  • Thread starter Thread starter Georgio
  • Start date Start date
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
 
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
 
воÑкреÑенье, 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
 
Back
Top