• 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...
  • 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...
  • 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...
  • Compound Literals with ARMCC: or what does '--gnu'?
    I'd like to use compound literals. So as I found in uVision help that if we use --gnu as additional compiler string, this C99 functionality is given. int y[] = (int []) {1, 2, 3}; // error in strict...
  • Extracting characters
    Hi all, Please could somebdy inform me how to extract a character from one string, I mean, MyString="12345"; I want, for example, obtain the third position of the string, "3". Im using Uv2...