What is the advantages of using assembly language with C++?
assembly with c++ is for the operating system programming only .
There are more disadvantages than advantages to using inline assembly in c++ programs. I used to use inline assembly 20 years ago in old MS-DOS programs but that was because compilers were not very smart in those days. But today I wouldn't even consider it. Compilers are pretty damned good, and portability is a big issue now.
Of course In win32 or under linux I never used the inline assembly.
But there are some places that you should need to write assembly code.
In this semester I have a course unite called Operating system engineering.
and we study about Operating systesms. We are following the bran's kernel
There are places like setting up the Global Descriptor table and the IDT interrupt
descriptor table where you need to write inline assembly.
and windows hal.dll (hardware abstraction layer) is written using assembly.hal.dll
is something which is 'processor specific'.
And some guys who learning DirectX and game development told me that they use
assembly for GPU optimization.There is something called CUDA ,I don't know anything
about it just only heard.But I know that's where programmers use Assembly language
in the industry.But that assembly language is completely different than the x86
And there are some places where we can't find a compiler or the compiler add
lots of overhead (big stacks and heaps) or too much abstraction. In the cases
like that it's necessary to use assembly language.Ex- Microcontrollers or small
embedded systems where you will find the device stack is only 16 bytes or
device heap is about 64 bytes.
In the world of x86 now ppl use "C" than assembly.
but read this too.
it's tldp archieve anyway,now that
Oh and the places like where we need to introduce new instructions, ex MMX instructions,
there also we can make use of the assembly.
Edited 6 Years Ago by NicAx64: n/a
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.
This is the result of previous question answered :
code for the listbox - datagridview interaction
At the top of the code ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...