Answer the question
In order to leave comments, you need to log in
Are there any tasks in the field of system programming for which it is advisable to use only assembler?
Are there any tasks in the field of system programming for which it is advisable to use only assembler? Are there bottlenecks in which the use of languages such as C / C ++ does not provide the means to implement the task, or can absolutely everything be written in C - from the driver to the operating system loader?
Answer the question
In order to leave comments, you need to log in
C and C++ are cross-platform languages. All platform-specific things are written in assembler, for example: reading / writing processor system registers in the OS kernel.
But about the strict need to use assembler for the sake of performance, I would argue. Compilers may not keep up with the hardware vendors who are constantly throwing new technologies (such as AVX) into new hardware, but it's only a matter of time before compilers learn these technologies.
In addition, Intel did not create its own compiler in vain. It is naive to think that a person is able to use the features of the intel processor in some more optimal way than the compiler from intel itself.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question