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

Assembly vs C

I wanted to know the difference between Assembly language and C according to the following parameters.... 1) Execution time (2) Time for coding (3) Hex file size and (4) Debugging. Thank you.

  • Same execution speed if the developer implements the assembler code with the same skill that the C compiler converts C into assembler instructions.

    Time for coding? Normally more time to code in assembler but that obviously depends on skills and how complex problems to code. The more complex problems, the larger extra cost of writing in assembler.

    Hex file size depends on skills. And if the assembler code makes use of any standard library or only codes exactly the functionality that is required.

    Debugging? Depends all on your skill of reading the code. Which depends on your skill when writing the code. But C has advantages in describing more complex data types allowing the debugger to present better formatted information.

    So why it is relevant? Anyone who doesn't know the implications of C contra assembler normally doesn't have the skills to write in assembler making all answers totally irrelevant.

  • Thank you Mr. Per Westermark. This question was asked in my college exam and I too was confused with these parameters. The software is Kiel version 4.0 which is being used in our college.

  • Mr. Per Westermark.

    plz give me ur email address. I will send u my college work and u can check 4 me.

  • I would like to share my email with you but not on this site as it is not private. Please send me your email and I will reply you. Or please let me know if there is some other alternative. Thank you.

  • plz give me ur email address. I will respond mine to u.

    this is a email address cocoging@amtool1kernaort.com