• Literalizing the '#' character in #define
    The C51 pre-processor treats the "#" character as the "Stringize" operator. How do I override this operator when desired? For example: #define X mov A,#10 Expands to: mov A,10 How can I force...
  • How to avoid literal pools ?
    Note: This was originally posted on 19th January 2012 at http://forums.arm.com Hello everyone, I am using Cortex-R4F (TI TMS570), and I noticed that ARM C compiler often adds data in literal pools as...
  • Literal evaluation messed up
    When I write the following in uVision, mov A, -2000 I want A to contain 0x30, as -2000 is 0xF830. Instead it contains 0x05. Is there any predefined macro to be able to treat a literal as sixteen...
  • Identify Storage of String Literals in Mapfile
    Is it possible to identify the storage of String Literals from the mapfile? I asume they will be in the ?CO? segment for the module? eg, void func( void ) { code unsigned int NumConst = 1; printf...
  • armcc
    Note: This was originally posted on 5th April 2013 at http://forums.arm.com Is there a compiler option or pragma that allows me to see "padding" in c structure?   typedef struct st {   char a; ...