Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/14/20 06:18
Read: times


 
#190970 - Spreadsheet Analysis
Responding to: ???'s previous message
Grant,

I do not see where the data that you provided ends up showing a compiler bug. One thing that is a little uncertain is where the values that you show in the comments of each line of the table come from. Are those showing what the compiler produced or what you computed ahead of time.

I made a simple spreadsheet in Excel to duplicate those calculations and the first thing that jumps out at me is that the spreadsheet computed numbers are sometimes one less that what you show in comments. The difference is in how the conversion of fractional results are converted to integer by lopping off the fractional part. Your values in the comments look like you rounded up in some cases.

Here is the image of the spreadsheet I made.



Michael Karas


List of 6 messages in thread
TopicAuthorDate
Keil C51 Bug            01/01/70 00:00      
   integer overflow            01/01/70 00:00      
      Same result (bad)            01/01/70 00:00      
         Spreadsheet Analysis             01/01/70 00:00      
         please try again            01/01/70 00:00      
            Yay            01/01/70 00:00      

Back to Subject List