What is the difference between assembly language and C language

Updated on technology 2024-03-23
9 answers
  1. Anonymous users2024-02-07

    Their instruction sets, with different addressing methods, are equivalent to two machines operating in their own ways.

    Assembly language is a low-level language, and when writing programs, it will specify different addressing methods according to different situations, and can directly manipulate the general registers in memory and CPU. Different computer families will have different assembly languages.

    Whereas, C is a high-level language and can be cross-platform. There is no need to specify the instruction execution of the CPU when writing a program, and a program can be used on computers with different architectures.

  2. Anonymous users2024-02-06

    1. The complexity of the operation is different.

    C language, compared with assembly language, C language is closer to the general thinking of people, so it is easier to operate in the design process of the program, in addition to some complex operations, operations, C language is much simpler than assembly, especially the rich function library in C language, can directly realize some originally very complex functions, and from the first amount of any C language program, through disassembly into assembly language program, its length may be increased several times.

    2. Different scope of use.

    The event of C language programs will be only a fraction of the assembly language program, and C language is undoubtedly higher in terms of program writing efficiency, and C language is a high-level programming language, so it is more portable and less limited by hardware devices.

    When implementing a function, assembly language can go directly to the goal, while C language gives you a general way to deal with this kind of problem, which is not specific, so there will be a lot of redundant processes that are not needed in this problem, so it may be that the program is larger and slower. Compared with assembly language, C is more suitable for the development of larger projects.

    3. The speed and efficiency of operation are different.

    The program can not run directly without assembly language, because assembly language is based on the programming of the underlying hardware of the computer, through which the direct operation of the CPU, memory, hard disk and external equipment is realized, because of the direct, the assembly language is almost incomparable in terms of the size of the program, the speed and efficiency of execution, but also because of the direct, so the assembly program is difficult to port, and the amount of the same operation is too large, in some large projects are, Programming with assembly alone is nearly impossible to achieve.

  3. Anonymous users2024-02-05

    The differences are as follows: 1. The efficiency is different.

    The assembly efficiency is high, while the efficiency of C language is relatively low.

    2. The operability of hardware is different.

    The assembly has strong hardware controllability, and the C language hardware has poor controllability.

    3. The volume and size are different.

    The assembly target ** is small, and the C target ** is large.

    4. Different maintainability.

    Assemblies are not easy to maintain, but C is easy to maintain.

    5. Portability is different.

    Assembly portability is poor, C portability is good.

  4. Anonymous users2024-02-04

    C language and assembly language are two different concepts, the most obvious difference is in their instruction sets and addressing.

    1. Assembly language sedan car:

    Assembly language is a low-level language, which directly controls the hardware with language, and indirectly achieves a certain control effect from the hardware, that is, assembly language pays more attention to the description process, can be portable, and has a strong correlation with the CPU;

    2. C language:

    High-level languages such as C are more focused on describing results, are high-level languages, have high portability, and are less relevant to the device.

  5. Anonymous users2024-02-03

    Different oak seepage places, too many beam bases.

    You should ask: what do these three languages have in common?

    The same is very shouting to take less.

  6. Anonymous users2024-02-02

    1. In assembly language, a program written for one processor cannot run on another type of processor. In C programs, the program runs independently of the processor type.

    2. The performance and accuracy of assembly language ** are better than those of c**.

    3. C must provide additional instructions to run on the computer**.

    4. Assembly language is more difficult to understand and debug than C.

    5. One or two C language statements are extended into many assembly languages**.

    6. Assembly language can communicate better than C, and some types of hardware operations can only be performed through assembly language.

    7. In assembly language, we can directly read the pointer on the physical address, which is not possible in C.

    8. It's easier to use bits in assembly language.

    9. The assembler is used to convert ** in assembly language, while the compiler is used to compile ** in C.

    10. The executable ** of C language ** is greater than that of assembly language**, so the execution time is longer.

    11. Due to the long executable **, the efficiency of the C program is lower than that of the assembly language program.

    12. Compared with assemblers, C programmers do not need to know hardware details such as registers in the processor.

    13. The most C language ** is automatically converted to assembly ** first.

  7. Anonymous users2024-02-01

    1. The compilation composition of the two is different. Assembly language is a machine language composed of in English with simple semantics, while C language not only synthesizes many related machine instructions into a single instruction, but also removes details related to specific operations but not related to getting the job done, such as using stacks, registers, etc.

    2. The paths recognized by the computer are different. Assembly language is often used for direct manipulation of hardware. Moreover, programs written in C cannot be directly recognized by computers, and must be converted before they can be executed.

    3. The two are of different uses. Assembly language is usually used in the core of a program to control hardware, on the one hand, for security, and on the other hand, to improve running speed. The C language is usually used for external computer functions.

  8. Anonymous users2024-01-31

    The two operate in different ways and have different instruction formats.

  9. Anonymous users2024-01-30

    The addressing command is different, isn't it? Assembly is a low-level language, and I just started learning it, and I don't understand it very well.

Related questions
4 answers2024-03-23

Both martensitic and austenite are microstructures of steel during heat treatment. >>>More

15 answers2024-03-23

The differences are as follows: 1. NADH is produced by glycolysis. >>>More

10 answers2024-03-23

The difference is: the meaning of the expression is different. >>>More

5 answers2024-03-23

1.A word is made up of 2 fires and a word is made up of 3 fires. >>>More

22 answers2024-03-23

Computers have A and B languages, but they are only early versions of C and are not very useful, and Che is only used by early scientists, and most people don't know much about it.