/usr/share/codeblocks/compilers/options_arm-elf-gcc.xml is in codeblocks-common 13.12-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | <?xml version="1.0"?>
<!DOCTYPE CodeBlocks_compiler_options>
<CodeBlocks_compiler_options>
<if platform="windows">
<Program name="C" value="arm-elf-gcc.exe"/>
<Program name="CPP" value="arm-elf-g++.exe"/>
<Program name="LD" value="arm-elf-g++.exe"/>
<Program name="DBGconfig" value=""/>
<Program name="LIB" value="arm-elf-ar.exe"/>
<Program name="WINDRES" value=""/>
<Program name="MAKE" value="make.exe"/>
</if>
<else>
<Program name="C" value="arm-elf-gcc"/>
<Program name="CPP" value="arm-elf-g++"/>
<Program name="LD" value="arm-elf-g++"/>
<Program name="DBGconfig" value=""/>
<Program name="LIB" value="arm-elf-ar"/>
<Program name="WINDRES" value=""/>
<Program name="MAKE" value="make"/>
</else>
<Switch name="includeDirs" value="-I"/>
<Switch name="libDirs" value="-L"/>
<Switch name="linkLibs" value="-l"/>
<Switch name="defines" value="-D"/>
<Switch name="genericSwitch" value="-"/>
<Switch name="objectExtension" value="o"/>
<Switch name="needDependencies" value="true"/>
<Switch name="forceCompilerUseQuotes" value="false"/>
<Switch name="forceLinkerUseQuotes" value="false"/>
<Switch name="logging" value="default"/>
<Switch name="libPrefix" value="lib"/>
<Switch name="libExtension" value="a"/>
<Switch name="linkerNeedsLibPrefix" value="false"/>
<Switch name="linkerNeedsLibExtension" value="false"/>
<Option name="Produce debugging symbols"
option="-g"
category="Debugging"
checkAgainst="-O -O1 -O2 -O3 -Os"
checkMessage="You have optimizations enabled. This is Not A Good Thing(tm) when producing debugging symbols..."
supersedes="-s"/>
<if platform="windows">
<Option name="Profile code when executed"
option="-pg"
category="Profiling"
additionalLibs="-pg -lgmon"
supersedes="-s"/>
</if>
<else>
<Option name="Profile code when executed"
option="-pg"
category="Profiling"
additionalLibs="-pg"
supersedes="-s"/>
</else>
<Common name="warnings"/>
<Category name="Warnings">
<Option name="Enable Effective-C++ warnings (thanks Scott Meyers)"
option="-Weffc++"/>
<Option name="Warn whenever a switch statement does not have a default case"
option="-Wswitch-default"/>
<Option name="Warn whenever a switch statement has an index of enumerated type and lacks a case for one or more of the named codes of that enumeration"
option="-Wswitch-enum"/>
<Option name="Warn if a user supplied include directory does not exist"
option="-Wmissing-include-dirs"/>
<Option name="Warn if a global function is defined without a previous declaration"
option="-Wmissing-declarations"/>
<Option name="Warn if the compiler detects that code will never be executed"
option="-Wunreachable-code"/>
<Option name="Warn if a function can not be inlined and it was declared as inline"
option="-Winline"/>
<Option name="Warn if floating point values are used in equality comparisons"
option="-Wfloat-equal"/>
<Option name="Warn if an undefined identifier is evaluated in an '#if' directive"
option="-Wundef"/>
<Option name="Warn whenever a pointer is cast such that the required alignment of the target is increased"
option="-Wcast-align"/>
<Option name="Warn if anything is declared more than once in the same scope"
option="-Wredundant-decls"/>
<Option name="Warn about unitialized variables which are initialized with themselves"
option="-Winit-self"/>
<Option name="Warn whenever a local variable shadows another local variable, parameter or global variable or whenever a built-in function is shadowed"
option="-Wshadow"/>
<Option name="Warn if a class has virtual functions but no virtual destructor"
option="-Wnon-virtual-dtor"/>
</Category>
<Common name="optimization"/>
<Option name="Don't keep the frame pointer in a register for functions that don't need one"
option="-fomit-frame-pointer"
category="Optimization"
checkAgainst="-g -ggdb"
checkMessage="You have debugging symbols enabled. This is Not A Good Thing(tm) when optimizing..."/>
<Category name="ARM CPU architecture specific">
<Option name="Generate stack frame even if unnecessary"
option="-mapcs-frame"
supersedes="-mno-apcs-frame"/>
<Option name="-mno-apcs-frame"
option="-mno-apcs-frame"
supersedes="-mapcs-frame"/>
<Option name="-mabi=apcs-gnu"
option="-mabi=apcs-gnu"
supersedes="-mabi=atpcs -mabi=aapcs -mabi=aapcs-linux -mabi=iwmmxt"/>
<Option name="-mabi=atpcs"
option="-mabi=atpcs"
supersedes="-mabi=apcs-gnu -mabi=aapcs -mabi=aapcs-linux -mabi=iwmmxt"/>
<Option name="-mabi=aapcs"
option="-mabi=aapcs"
supersedes="-mabi=apcs-gnu -mabi=atpcs -mabi=aapcs-linux -mabi=iwmmxt"/>
<Option name="-mabi=aapcs-linux"
option="-mabi=aapcs-linux"
supersedes="-mabi=apcs-gnu -mabi=atpcs -mabi=aapcs -mabi=iwmmxt"/>
<Option name="-mabi=iwmmxt"
option="-mabi=iwmmxt"
supersedes="-mabi=apcs-gnu -mabi=atpcs -mabi=aapcs -mabi=aapcs-linux"/>
<Option name="-mapcs-stack-check"
option="-mapcs-stack-check"
supersedes="-mno-apcs-stack-check"/>
<Option name="-mno-apcs-stack-check"
option="-mno-apcs-stack-check"
supersedes="-mapcs-stack-check"/>
<Option name="-mapcs-float"
option="-mapcs-float"
supersedes="-mno-apcs-float"/>
<Option name="-mno-apcs-float"
option="-mno-apcs-float"
supersedes="-mapcs-float"/>
<Option name="-mapcs-reentrant"
option="-mapcs-reentrant"
supersedes="-mno-apcs-reentrant"/>
<Option name="-mno-apcs-reentrant"
option="-mno-apcs-reentrant"
supersedes="-mapcs-reentrant"/>
<Option name="-msched-prolog"
option="-msched-prolog"
supersedes="-mno-sched-prolog"/>
<Option name="Prevent the reordering of instructions in the function prolog"
option="-mno-sched-prolog"
supersedes="-msched-prolog"/>
<Option name="Generate code for little-endian processors"
option="-mlittle-endian"
supersedes="-mbig-endian"/>
<Option name="Generate code for big-endian processors"
option="-mbig-endian"
supersedes="-mlittle-endian"/>
<Option name="-mwords-little-endian"
option="-mwords-little-endian"/>
<Option name="-msoft-float"
option="-msoft-float"
supersedes="-mhard-float"/>
<Option name="-mhard-float"
option="-mhard-float"
supersedes="-msoft-float"/>
<Option name="-mfpe"
option="-mfpe"/>
<Option name="Generate code supporting calls between the ARM and Thumb instruction sets"
option="-mthumb-interwork"
supersedes="-mno-thumb-interwork -marm -mthumb"/>
<Option name="-mno-thumb-interwork"
option="-mno-thumb-interwork"
supersedes="-mthumb-interwork"/>
<Option name="'fpa' floating point unit"
option="-mfpu=fpa"
supersedes="-mfpu=fpe2 -mfpu=fpe3 -mfpu=maverick -mfpu=vfp -mfpu=vfpv3 -mfpu=vfpv3-d16 -mfpu=neon"/>
<Option name="'fpe2' floating point unit"
option="-mfpu=fpe2"
supersedes="-mfpu=fpa -mfpu=fpe3 -mfpu=maverick -mfpu=vfp -mfpu=vfpv3 -mfpu=vfpv3-d16 -mfpu=neon"/>
<Option name="'fpe3' floating point unit"
option="-mfpu=fpe3"
supersedes="-mfpu=fpa -mfpu=fpe2 -mfpu=maverick -mfpu=vfp -mfpu=vfpv3 -mfpu=vfpv3-d16 -mfpu=neon"/>
<Option name="'maverick' floating point unit"
option="-mfpu=maverick"
supersedes="-mfpu=fpa -mfpu=fpe2 -mfpu=fpe3 -mfpu=vfp -mfpu=vfpv3 -mfpu=vfpv3-d16 -mfpu=neon"/>
<Option name="'vfp' floating point unit"
option="-mfpu=vfp"
supersedes="-mfpu=fpa -mfpu=fpe2 -mfpu=fpe3 -mfpu=maverick -mfpu=vfpv3 -mfpu=vfpv3-d16 -mfpu=neon"/>
<Option name="'vfpv3' floating point unit"
option="-mfpu=vfpv3"
supersedes="-mfpu=fpa -mfpu=fpe2 -mfpu=fpe3 -mfpu=maverick -mfpu=vfp -mfpu=vfpv3-d16 -mfpu=neon"/>
<Option name="'vfpv3-d16' floating point unit"
option="-mfpu=vfpv3-d16"
supersedes="-mfpu=fpa -mfpu=fpe2 -mfpu=fpe3 -mfpu=maverick -mfpu=vfp -mfpu=vfpv3 -mfpu=neon"/>
<Option name="'neon' floating point unit"
option="-mfpu=neon"
supersedes="-mfpu=fpa -mfpu=fpe2 -mfpu=fpe3 -mfpu=maverick -mfpu=vfp -mfpu=vfpv3 -mfpu=vfpv3-d16"/>
<Option name="Round structure and union size up to a multiple of 8 bits"
option="-mstructure-size-boundary=8"
supersedes="-mstructure-size-boundary=32 -mstructure-size-boundary=64"/>
<Option name="Round structure and union size up to a multiple of 32 bits"
option="-mstructure-size-boundary=32"
supersedes="-mstructure-size-boundary=8 -mstructure-size-boundary=64"/>
<Option name="Round structure and union size up to a multiple of 64 bits"
option="-mstructure-size-boundary=64"
supersedes="-mstructure-size-boundary=8 -mstructure-size-boundary=32"/>
<Option name="Generate a call to the function abort at the end of a noreturn function"
option="-mabort-on-noreturn"/>
<Option name="-mlong-calls"
option="-mlong-calls"
supersedes="-mno-long-calls"/>
<Option name="-mno-long-calls"
option="-mno-long-calls"
supersedes="-mlong-calls"/>
<Option name="Treat the register used for PIC addressing as read-only"
option="-msingle-pic-base"
supersedes="-mno-single-pic-base"/>
<Option name="-mno-single-pic-base"
option="-mno-single-pic-base"
supersedes="-msingle-pic-base"/>
<Option name="-mpic-register=R9"
option="-mpic-register=R9"
supersedes="-mpic-register=R10"/>
<Option name="-mpic-register=R10"
option="-mpic-register=R10"
supersedes="-mpic-register=R9"/>
<Option name="-mnop-fun-dllimport"
option="-mnop-fun-dllimport"/>
<Option name="-mcirrus-fix-invalid-insns"
option="-mcirrus-fix-invalid-insns"
supersedes="-mno-cirrus-fix-invalid-insns"/>
<Option name="-mno-cirrus-fix-invalid-insns"
option="-mno-cirrus-fix-invalid-insns"
supersedes="-mcirrus-fix-invalid-insns"/>
<Option name="-mpoke-function-name"
option="-mpoke-function-name"/>
<Option name="Generate code that executes in Thumb state"
option="-mthumb"
supersedes="-marm -mthumb-interwork"/>
<Option name="Generate code that executes in ARM state"
option="-marm"
supersedes="-mthumb -mthumb-interwork"/>
<Option name="-mtpcs-frame"
option="-mtpcs-frame"/>
<Option name="-mtpcs-leaf-frame"
option="-mtpcs-leaf-frame"/>
<Option name="-mcaller-super-interworking"
option="-mcaller-super-interworking"/>
<Option name="-mcallee-super-interworking"
option="-mcallee-super-interworking"/>
</Category>
<Category name="ARM CPU architecture derivatives"
exclusive="true">
<Option name="ARM2 processor"
option="-mcpu=arm2"/>
<Option name="ARM250 processor"
option="-mcpu=arm250"/>
<Option name="ARM3 processor"
option="-mcpu=arm3"/>
<Option name="ARM6 processor"
option="-mcpu=arm6"/>
<Option name="ARM60 processor"
option="-mcpu=arm60"/>
<Option name="ARM600 processor"
option="-mcpu=arm600"/>
<Option name="ARM610 processor"
option="-mcpu=arm610"/>
<Option name="ARM620 processor"
option="-mcpu=arm620"/>
<Option name="ARM7 processor"
option="-mcpu=arm7"/>
<Option name="ARM7m processor"
option="-mcpu=arm7m"/>
<Option name="ARM7d processor"
option="-mcpu=arm7d"/>
<Option name="ARM7dm processor"
option="-mcpu=arm7dm"/>
<Option name="ARM7di processor"
option="-mcpu=arm7di"/>
<Option name="ARM7dmi processor"
option="-mcpu=arm7dmi"/>
<Option name="ARM70 processor"
option="-mcpu=arm70"/>
<Option name="ARM700 processor"
option="-mcpu=arm700"/>
<Option name="ARM700i processor"
option="-mcpu=arm700i"/>
<Option name="ARM710 processor"
option="-mcpu=arm710"/>
<Option name="ARM710c processor"
option="-mcpu=arm710c"/>
<Option name="ARM7100 processor"
option="-mcpu=arm7100"/>
<Option name="ARM720 processor"
option="-mcpu=arm720"/>
<Option name="ARM7500 processor"
option="-mcpu=arm7500"/>
<Option name="ARM7500fe processor"
option="-mcpu=arm7500fe"/>
<Option name="ARM7tdmi processor"
option="-mcpu=arm7tdmi"/>
<Option name="ARM7tdmi-s processor"
option="-mcpu=arm7tdmi-s"/>
<Option name="ARM710t processor"
option="-mcpu=arm710t"/>
<Option name="ARM720t processor"
option="-mcpu=arm720t"/>
<Option name="ARM740t processor"
option="-mcpu=arm740t"/>
<Option name="strongarm processor"
option="-mcpu=strongarm"/>
<Option name="strongarm110 processor"
option="-mcpu=strongarm110"/>
<Option name="strongarm1100 processor"
option="-mcpu=strongarm1100"/>
<Option name="strongarm1110 processor"
option="-mcpu=strongarm1110"/>
<Option name="ARM8 processor"
option="-mcpu=arm8"/>
<Option name="ARM810 processor"
option="-mcpu=arm810"/>
<Option name="ARM9 processor"
option="-mcpu=arm9"/>
<Option name="ARM9e processor"
option="-mcpu=arm9e"/>
<Option name="ARM920 processor"
option="-mcpu=arm920"/>
<Option name="ARM920t processor"
option="-mcpu=arm920t"/>
<Option name="ARM922t processor"
option="-mcpu=arm922t"/>
<Option name="ARM946e-s processor"
option="-mcpu=arm946e-s"/>
<Option name="ARM966e-s processor"
option="-mcpu=arm966e-s"/>
<Option name="ARM968e-s processor"
option="-mcpu=arm968e-s"/>
<Option name="ARM926ej-s processor"
option="-mcpu=arm926ej-s"/>
<Option name="ARM940t processor"
option="-mcpu=arm940t"/>
<Option name="ARM9tdmi processor"
option="-mcpu=arm9tdmi"/>
<Option name="ARM10tdmi processor"
option="-mcpu=arm10tdmi"/>
<Option name="ARM1020t processor"
option="-mcpu=arm1020t"/>
<Option name="ARM1026ej-s processor"
option="-mcpu=arm1026ej-s"/>
<Option name="ARM10e processor"
option="-mcpu=arm10e"/>
<Option name="ARM1020e processor"
option="-mcpu=arm1020e"/>
<Option name="ARM1022e processor"
option="-mcpu=arm1022e"/>
<Option name="ARM1136j-s processor"
option="-mcpu=arm1136j-s"/>
<Option name="ARM1136jf-s processor"
option="-mcpu=arm1136jf-s"/>
<Option name="mpcore processor"
option="-mcpu=mpcore"/>
<Option name="mpcorenovfp processor"
option="-mcpu=mpcorenovfp"/>
<Option name="ARM1156t2-s processor"
option="-mcpu=arm1156t2-s"/>
<Option name="ARM1176jz-s processor"
option="-mcpu=arm1176jz-s"/>
<Option name="ARM1176jzf-s processor"
option="-mcpu=arm1176jzf-s"/>
<Option name="cortex-a8 processor"
option="-mcpu=cortex-a8"/>
<Option name="cortex-a9 processor"
option="-mcpu=cortex-a9"/>
<Option name="cortex-r4 processor"
option="-mcpu=cortex-r4"/>
<Option name="cortex-r4f processor"
option="-mcpu=cortex-r4f"/>
<Option name="cortex-m3 processor"
option="-mcpu=cortex-m3"/>
<Option name="cortex-m1 processor"
option="-mcpu=cortex-m1"/>
<Option name="xscale processor"
option="-mcpu=xscale"/>
<Option name="iwmmxt processor"
option="-mcpu=iwmmxt"/>
<Option name="iwmmxt2 processor"
option="-mcpu=iwmmxt2"/>
<Option name="ep9312 processor"
option="-mcpu=ep9312"/>
</Category>
<Command name="CompileObject"
value="$compiler $options $includes -c $file -o $object"/>
<Command name="GenDependencies"
value="$compiler -MM $options -MF $dep_object -MT $object $includes $file"/>
<Command name="CompileResource"
value="$rescomp -i $file -J rc -o $resource_output -O coff $res_includes"/>
<Command name="LinkConsoleExe"
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs"/>
<if platform="windows">
<Command name="LinkExe"
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs -mwindows"/>
<Command name="LinkDynamic"
value="$linker -shared -Wl,--output-def=$def_output -Wl,--out-implib=$static_output -Wl,--dll $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs"/>
</if>
<else>
<Command name="LinkExe"
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs"/>
<Command name="LinkDynamic"
value="$linker -shared $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libs"/>
</else>
<Command name="LinkNative"
value="$linker $libdirs -o $exe_output $link_objects $link_resobjects $link_options $libs"/>
<Command name="LinkStatic"
value="$lib_linker -r -s $static_output $link_objects"/>
<Common name="cmds"/>
<Common name="re"/>
<Common name="sort"/>
</CodeBlocks_compiler_options>
|