This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Urgent! How to build assembly code in GPP side when using Codec engine?



Dear Experts,

 

I am building a code, which uses the assembly as following:

 

static inline void emms(void)

{

    __asm__ volatile ("emms;":::"memory");

}

 

It can be built on x86 on PC, and works well. The question is now:

I want to port it into GPP side on OMAP with CE to build it. However, it can be built successfully, How can I deal with? thank you.

 

 

The other question is: 

The ffmpeg code is working on PC very well.  Suppose that I want to port it into GPP side of OMAP, how can I define the following architecture, i.e. which architecture I need to choose, or how to set up the architecture?  thanks

=======================

#if   ARCH_ARM

#   include "arm/mathops.h"

#elif ARCH_AVR32

#   include "avr32/mathops.h"

#elif ARCH_BFIN

#   include "bfin/mathops.h"

#elif ARCH_MIPS

#   include "mips/mathops.h"

#elif ARCH_PPC

#   include "ppc/mathops.h"

#elif ARCH_X86

#   include "x86/mathops.h"

#endif

============================
Dave