When I create a hex file for a C file the addresses are not in order. Is there an option in uVision to make sure they are in order? The addresses are fine when I use an assembly file.
Specifying Flash Fill Byte (I set it to 0xFF) in the Output section of Target Options helps with my C166 tools. Maybe it works with C51 as well?