Compiler Warning (level 2) C4720 (Windows CE 5.0)

Send Feedback

in-line assembler reports: 'message'")

This SH-specific warning applies to multiple situations that might occur for SH inline assembly.

This warning is not visible when compiling with the -GL Whole Program Optimization option.

In the following example code, the compiler issues this warning to indicate a branch in a delay slot.

/* C4720.c */
#ifdef __cplusplus
extern "C" void __asm(const char *, ...);
extern void __asm(const char *,...);

int main() 
   int ValA = 10;
   int ValB = 0;
      "mov.l @r4, r2\n"
      "mov #0, r6\n"
      "add r2, r6\n"
      "bf/s lala\n"
      "bf la\n"
      "lala: add r2, r6\n"
      "la: mov.l r6, @r5\n", 
      &ValA,&ValB);     /* delay slot branch */
   return 0;

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.