Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Compiler settings (not the dialog)

<< < (2/2)

MortenMacFly:
I see that this is a difficult task. I would generally agree to the group of common switches - it sounds good. But I would like to point out that this might not always work. I still believe that e.g. a Java compiler could be attached to C::B. I really think C::B has the potential for it and that would rock! But the common set of options between a Java and a C++ compiler are not too many. Furthermore: Does Java has a linker, thus linker options?

So I would like to propose that besides common compiler (linker) settings there should be a "manual" option. I could imagine a simple dialog with two listboxes besides showing left the old compiler settings of the project and right the new (possible) settings - both sides including the description. So really the optionns as you see them in the compiler setup but only for two compilers in comparision. Then let the user decide what he toggles on the right (new compiler) side. What do you think?

Morten.

Edit: Please note that Java is an example here. This might also apply to C/C++/Whatever compilers we don't know yet.

takeshimiya:
Hi! Reporting in.

Yiannis, can you look at this? I've made it the other day, and was holding until later, but this seems the place for 'release early...'.

I tried to cover all the current settings for compilers, but for sure I forgot something. I have some ideas for the v2 of the file format (reorganizing the options, changing some things for more expansibility, ...), but this v1 is so the TinyXml-ization of the current compilers can be done more easily.

I also hope also that makes sense becase I've waken up suddendly 5 minutes ago. :mrgreen:

EDIT: Specific to the title, here's how some options can be for gcc:


--- Code: (xml) ---            <Common name="optimize" value="off" option="!-O !-O1 !-O2 !-O3 !-Os !-fexpensive-optimizations" />
            <Common name="optimize" value="speed" option="-O2" />
            <Common name="optimize" value="size" option="-Os -s" />
            <Common name="debug-info" value="yes" option="-g !-Os !-pg !-lgmon" />
            <Common name="debug-info" value="no" option="!-g" />
            <Common name="warnings" value="no" option="-w !-W !-Wall !-pedantic !-Wmain !-Wfatal-errors" />
            <Common name="warnings" value="default" option="-W" />
            <Common name="warnings" value="max" option="-Wall -pedantic -Wmain" />
            <Common name="precomp-headers" value="on" option="" />
            <Common name="precomp-headers" value="off" option="" />
            <Common name="rtti" value="on" option="!-no-rtti" />
            <Common name="rtti" value="off" option="-no-rtti" />
            <Common name="exceptions" value="on" option="!-no-exceptions" />
            <Common name="exceptions" value="off" option="-no-exceptions" />

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version