We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Think you. I modified my source :
printf("%lu * %bu = ", N, M); printf("%lu\n", Freq); Freq=25690112L; printf("%lu * %bu = ", Freq, 4); Freq*=4; printf("%lu\n", Freq);
It work correctly. but the Long Integer Multiple fault also.
Run Result: 24500000 * 4 = 4294926936 25690112 * 4 = 1568
My Program runs on simulator . It runs out correct result on simulator when not use on-chip arichmetic accelerator.
but do it run correct on hardwaaare???!!!
if just on simuletor then think it is simulater do not simelate good!!!!????
then no be bug of compiler huh????
A SIMULATOR simulates and as such will NEVER give you the full (and correct) story. Also, as stated before, there is no way it is economically feasible for Keil to simulate every exotic function of all exotic derivatives of the '51.
such special interest issues is what keeps Keil from taking time for general and important issues such as changing compiler things like mov r7,Ralph mov a,r7 to mov a,Ralph in the COMPILER, not the optimizer
If you doubt the simulator, try it on the hardware, stick the code on your devboard use the emulator and check. This is so darn simple and would have been resolved in 5 minutes instead of the DAYS these threads has run.
Erik
"A SIMULATOR simulates and as such will NEVER give you the full (and correct) story"
i not think you be right with NEVER!!!!!!
a dedacated simulator for a specifec cpu is posssible to give correct story
but point by me is that compiler probly do not have the bug whot he say before!!!
a small correction:
A SIMULATOR simulates and as such a simulator you can afford will NEVER ......
re "a dedacated simulator for a specifec cpu" dream on.
again: why not just spend 5 minutes and try it with your devboard and emulator instead if spending days discussing it
sir eric
again i sit in corner with hat on and think hard
i do think we basicerally agree on point
do you?????
i sit in corner with hat on and think hard
WHY?
STOP THINKING!!!! stick the stuff on a devboard, hook up the emulator and see the result. WHY ON EARTH 'think' about somethog you can (dis)prove in 5 minutes??????
"My Program runs on simulator"
And so it should! The Simulator will simulate the on-chip arithmetic acccelerator that the tools expect - if your real hardware doesn't have such a feature, then it obviously won't work properly on that hardware!
"STOP THINKING!!!! "
sir erac
that is VERY bad idea you say me!!!
persoon must think to design project!!!!
it called planning you know
i give you book on design for you be learning ????
mr erac
here is good book i read for you please
books.google.com/books