Is there a bug? I have a well debugged and tested C program, that works fine with a normal compile. (Optimization Level 8, emphasis on code size ) It does not work correct when I enable the Assembler SRC generation and assemble the SRC files. The bytes of code generated are exactly the same, but a comparison of the 2 resultant *.HEX files shows some differences. The differences occur near the beginning of the .hex file, and then the files are identical for the rest of the 3600+ bytes. Can anyone help?
What types are the parameters? There were definitely some bugs with some of the 6.?? compiler versions when passing longs to functions compiled with SRC. I can't remember if I posted the details here, or just went straight to Keil support. If you have support, you should take this up direct with Keil.
"I can't remember if I posted the details here I just found it: http://www.keil.com/forum/docs/thread1188.asp