arrow_back_ios Back to List


Offload KB - offload-library

Old Content Alert

Please note that this is a old document archive and the will most likely be out-dated or superseded by various other products and is purely here for historical purposes.

Offload outputs C code which is then compiled by PPU GCC and SPU GCC to generate an object file. The -BEO[n] option passes the optimization level n to SPU GCC and PPU GCC.

It can often be useful to compile the C code output by Offload with a specific optimization level, for example where the SPU binary is growing too large. We provide the compiler option –BEO[n] (n being the optimization level), that has the standard GCC optimization levels, –BEO0, -BEO1, -BEO2, -BEO3 & -BEOs. This comes in handy as it means you can compile an example with –O3 –BEOs, which turns all the Offload optimizations on, but compiles the code we generate with space in mind, allowing some examples that would not necessarily fit in the SPU with its restrictions of binary size, to fit.

Different optimization levels can be applied to SPU GCC and PPU GCC by using the -BEppuopt and -BEspuopt option (/kb/17.html) respectively.