| ??? 01/01/05 17:56 Read: times |
#84200 - Data Sizes - Lesson not yet learned? Responding to: ???'s previous message |
In you previous thread:
http://www.keil.com/appnotes/docs/apnt_161.asp one unanimous recommendation was that you need to carefully consider your variable sizes for an 8051 target. You are still using a lot of 'int' variables where you don't need to; eg, IsLeapYear() can only return either 0 or 1, but its return type is 'int' - which is 16 bits in Keil C51! A the very most, this should be 'unsigned char'; and preferably 'bit'. Note also that the 8051 has no native support for signed arithmetic - so signed variables should also be avoided unless specifically required. |
| 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 |



