On Sun, 2014-02-02 at 14:19 +0200, Anders Montonen wrote: > Hi, > > It seems that GCC configured for MIPS will always generate a call to memcpy when > optimizing for size, is this expected behaviour? I have encountered this both with > a self-built GCC 4.8.1 (configured for mipsel-sde-elf) and Microchip's XC32 compiler, > which is based on GCC 4.5.2. This is related to the MIPS -mmemcpy flag. Try using -mno-memcpy with -Os and you should get inlined code for your __builtin_memcpy use. Steve Ellcey