From cTuning.org
Navigation: cTuning.org > CTools > ICI
Task | Functions |
---|---|
Query the version of the compiler I use | ici_get_feature ("compiler_version") returns the string containing the compiler version, converted to void pointer. |
Get the list of known compiler command-line flags | ici_get_feature ("compiler_flags") returns the array of strings containing command-line option names (with leading 'minus' sign stripped)
ici_get_feature_size ("compiler_flags") returns the number of bytes in the array. |
Get the value of a specific command-line flag | ici_get_subfeature ("compiler_flags", <flag_name>) returns the void pointer pointing to or representing the value of the flag, as appropriate (a pointer for string values, an integer for integer, Boolean, and "bit set" / "bit cleared" options |
Get the list of known compiler parameters | ici_get_feature ("compiler_params") returns the array of strings containing parameter names supported by the current build of the compiler.
ici_get_feature_size ("compiler_params") returns the number of bytes in the array. |
Get/set the value of a specific compiler parameter | ici_get_subfeature ("compiler_params", <param_name>) returns the current value of the parameter named <param_name>.
ici_set_subfeature ("compiler_params", <param_name>, <value>) sets the value of the parameter named <param_name> to <value>. |