Hello,
Please let me know
1) What is a monitor program and how is it used?
2) My program uses a lot of floating point numbers as many floating point calculations are required. Should one try to avoid using floating point numbers and how can it be accomplished?
Regards,
Mohit
Read-Only
Author Leonhard Fuchs
Posted 3-Jan-2001 12:57 GMT
Toolset C51
RE: Monitor Program
Leonhard Fuchs
1. A monitorprogram can be used to debug your program directly on the target system. Therefore you have to program your hardware with the monitorprogram. After this you can connect the pc to your hardware and download your application. You can run your application, stop it, place breakpoints, evaluate or change variables and a lot more.
2. floating point calculations are taking a lot of your speed ressources. Though man should avoid using it. Most of the time it is possible to use bytes or int/word instead. For example if you have to set up a temperature between -50 and +200 °C. you can store the value internally as an integer. If you need a resolution of 0.1 take the internal value multiplied with 10. So internally 257 digit repesent 25.7 °C. To show the correct value to the user you just need a division of an integer.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.