This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

arm assembly - generating of 32 bit constants

Note: This was originally posted on 13th October 2009 at http://forums.arm.com

Hi,

i am searching for an algorithm to load any kind of 32 bit constants. As you know the arm compiler puts in the most cases the constants with some add/mul etc instructions together instead of loading the constant via the program counter out of the "constant pool". The way the compiler generates the constants is not really known to me. Unfortunately I could not find anything about it right now. Does somebody know where i can find something explaining whats the best way is to generate constants. Thx
0