??? 01/01/05 18:12 Read: times |
#84202 - Debugger? Simulator? Maths? Responding to: ???'s previous message |
Shahzad said:
it is very easy to debug in TC on desktop than testing on 8051 where i do not have monitor but only few LED's. That's why Keil gives you a Simulator! As I said before, If you can run your code in Turbo-C, you can ceratinly use the simulator - and that will give you comparable debugging facilities. But you an see that the function i am trying to run on 8051 has been compiled correctly on KEIL C and it run correctly in the debugger. DO you mean the Turbo-C debugger, the Keil Debugger, or the Keil Simulator? as can be seen its only operations like y % 400 in the function which is creating problems I don't see that; please explain why you say that? Is it possible that some code is compiled with Keil C and results are also verified in Keil Debugger, but it does not run when the code is burn in 8052. You must mean the Simulator? Yes, it is possible - because it is only a Simulation. If there is something - anything - about your hardware that does not exactly match what the simulator simulates, then that obvioulsy invalidates at least that part of the simulation! http://www.keil.com/discuss/docs/thread5315.htm http://www.keil.com/discuss/docs/thread4173.htm http://www.keil.com/discuss/docs/thread4173.htm i am really having bad experience when it comes to complex maths programming on 8052. The 8051 was never designed for complex maths! (but then y%400 is hardly "complex maths!") Is this possible that i convert all mathmatical operations divisions or getting reminder using only addition and subtractions operations because i am much more comfortable working with only additions and subtractions on 8052 I think the guys at Keil probably know by now how to implement the necessary maths support for 'C' - I doubt very much that you will be able to better it! |
Topic | Author | Date |
Keil C Code not working | 01/01/70 00:00 | |
Desktop turbo c++ ? | 01/01/70 00:00 | |
Slightly??!! | 01/01/70 00:00 | |
agreed | 01/01/70 00:00 | |
i got the math to do div / multiply | 01/01/70 00:00 | |
Debugger? Simulator? Maths? | 01/01/70 00:00 | |
Question... | 01/01/70 00:00 | |
Please use Correct Terms | 01/01/70 00:00 | |
Re Andy Debugger, Simulator? Math | 01/01/70 00:00 | |
*unnecessarily* complex! | 01/01/70 00:00 | |
Re andy | 01/01/70 00:00 | |
Divide and Conquer! | 01/01/70 00:00 | |
Bad Burner? | 01/01/70 00:00 | |
Re Andy Bad Burner | 01/01/70 00:00 | |
Project Configuration? | 01/01/70 00:00 | |
debugging? | 01/01/70 00:00 | |
thanks for the link | 01/01/70 00:00 | |
Data Sizes - Lesson not yet learned? | 01/01/70 00:00 | |
Re Andy | 01/01/70 00:00 | |
brackets ? | 01/01/70 00:00 | |
(no) brackets | 01/01/70 00:00 | |
WriteCommandLCD ? | 01/01/70 00:00 | |
Re Andy | 01/01/70 00:00 | |
Problem not fixed yet? | 01/01/70 00:00 | |
Problem not fixed yet?![]() | 01/01/70 00:00 |