This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

which is best?assembly language or keil C

please answer me

Parents
  • M$ Developer Studio is quote good for developing a Windows program. Obviously not so good for developing a program for a 8051 chip.

    In the same way, we wouldn't have both assembler and Keil C if one of them had always been the best choice. All developers going the other route would then be doing something criminally wrong by going a known "bad" route.

    The above should be quite obvious. So if there can't be a clear winner, it must be obvious that there are lots of "it depends" things to consider before selecting which tool to use.

    Exactly how many "it depends" facts did you supply in your original post? I can't see you mention anything at all, besides selecting a processor architecture.

    You don't say anything about how long time you have before project must be shipped.
    You don't say anything about if you know assenbler or C and would have a different startup time depending on choice.
    You don't say anything about size of program in relation to amount of code space in processor - would it be better to program quickly in C or optimize extremely for size or speed with potentially very expensive-to-write assembler code.
    You don't say anything about the skills of the people who need to maintain the product after shipping.
    You don't say anything about the interests in being able to port some/all of the code to another processor, in case the product happens to live far longer than you originally expected.
    You don't ...

    In short - you haven't spent any own time thinking about the problem. And if YOU haven't taken the time to think, then no one else will be able to step in and thing for you. Only you know the requirements/nneds. So only you can put up a balance scale and then put down weights on the two sides of the scale and see in which way the balance scale will turn.

    There are no best programming language.
    There are no best processor.
    There are no best car.
    There are no best wine.
    There are no best country.
    There are no best religion.

    It's important that you quickly realize the problem with the word "best", since the majority of troubles in this world comes from people living in the folly that there exists absolute bests, and that we all should/must go that same route.

Reply
  • M$ Developer Studio is quote good for developing a Windows program. Obviously not so good for developing a program for a 8051 chip.

    In the same way, we wouldn't have both assembler and Keil C if one of them had always been the best choice. All developers going the other route would then be doing something criminally wrong by going a known "bad" route.

    The above should be quite obvious. So if there can't be a clear winner, it must be obvious that there are lots of "it depends" things to consider before selecting which tool to use.

    Exactly how many "it depends" facts did you supply in your original post? I can't see you mention anything at all, besides selecting a processor architecture.

    You don't say anything about how long time you have before project must be shipped.
    You don't say anything about if you know assenbler or C and would have a different startup time depending on choice.
    You don't say anything about size of program in relation to amount of code space in processor - would it be better to program quickly in C or optimize extremely for size or speed with potentially very expensive-to-write assembler code.
    You don't say anything about the skills of the people who need to maintain the product after shipping.
    You don't say anything about the interests in being able to port some/all of the code to another processor, in case the product happens to live far longer than you originally expected.
    You don't ...

    In short - you haven't spent any own time thinking about the problem. And if YOU haven't taken the time to think, then no one else will be able to step in and thing for you. Only you know the requirements/nneds. So only you can put up a balance scale and then put down weights on the two sides of the scale and see in which way the balance scale will turn.

    There are no best programming language.
    There are no best processor.
    There are no best car.
    There are no best wine.
    There are no best country.
    There are no best religion.

    It's important that you quickly realize the problem with the word "best", since the majority of troubles in this world comes from people living in the folly that there exists absolute bests, and that we all should/must go that same route.

Children