Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: sanjivg on September 20, 2005, 04:12:15 pm

Title: Plugins to a compiler plugin.
Post by: sanjivg on September 20, 2005, 04:12:15 pm
I was looking at the sdk interfaces to add a compiler plugin (toolchain).
And I understood  following things so far:
1. We call the entire toolchain as "Compiler", and there are different programs of a "Compiler"
 called C compiler, C++ compiler, linker, debugger, ar etc.
2. both C compiler and C++ compiler take same options.

Please correct me if I am wrong in saying above.
Now, I have a few questions below as:
1. What if my C compiler refuse to accept C++ specific options and I have both C and C++ files
in the same target.
2. Should the sdk provide the interfaces to add a new command and its options to a "Compiler" ?
e.g I want to add a new command "mycpp", which is default when I add a .x file. and there is a
tab for specifying options for "mycpp".

Expecting a reply, irrespective of whether the above things make sense or not.

Thanks
Sanjiv
Title: Re: Plugins to a compiler plugin.
Post by: mandrav on September 20, 2005, 09:12:46 pm
I suggest you wait a while. The compiler framework will be redesigned after v1.0 is released, to become more versatile and data-driven...