• when #ifdeffing a testsnippet
    when #ifdeffing a testsnippet it is, often, desirable to be able to do this: code .... code .... #ifdef DOIT BOOL flag if (flag) .... Keil does not allow definitions in the middle of a routine...
  • rather than #ifdef
    I am working on some stuff with 4711 #ifdefs and, on most global searches, end up looking at inactive code. To obtain 'marked' code lines I tried to replace #ifdef BLAH ....... with //#define...
  • Can I use #ifdef in STARTUP.A51
    My current project has 2 targets, For 1 the code starts at 0x0000 and for the other the code starts at 0x8000. I therefore modified STARTUP.A51 to give: PUBLIC ?C_STARTUP #ifdef TOP CSEG AT 0x8000...
  • Compier checks section under #ifdef UNDEFINED -> error
    It seems a bug crept in CC ARM, may be not only ARM. Consider next code: #ifdef IDENTIFIER IDENTIFIER(); #endif and build output: ..\..\src\module\module.cpp(344): error: #20: identifier...
  • Using #ifdef in scatter file in ARM compiler v6
    Hi, I am porting an application from ARM compiler V5 to ARM Compiler V6.0. I have been able to compile the application.While linking there is an issue, we are having #ifdev REV1 in thr scatter file...