Home > other >  How to embedding assemble language in C language?
How to embedding assemble language in C language?

Time:09-26

I only know C language, is completely don't understand, assembly language, want to optimize the assembly code some C language function, but not completely, like a different compiler instruction set assembly code is different, so do you know what is specifically explain the books or tutorials? Thank you very much!

CodePudding user response:

For example:
The __asm {
Mov ebx, 0 x04269b38;
Mov ebx, [ebx];
Mov eax and ebx;
The add eax, 0 x828;
Mov edx, [eax];
Mov dNum eax;
}

CodePudding user response:

DWORD variable dNum is the c language

CodePudding user response:

reference 1/f, 520 blue feathers response:
such as:
The __asm {
Mov ebx, 0 x04269b38;
Mov ebx, [ebx];
Mov eax and ebx;
The add eax, 0 x828;
Mov edx, [eax];
Mov dNum eax;
}


A great god, and this code is just what I want to learn, is there a relevant learning materials or great god books name? Hope comment!

CodePudding user response:

GCC embedded assembly support is good, can directly see the GCC official documentation of the section,

CodePudding user response:

Add me more than a decade before an article C embedded assembly:

Used to write special requests of strlen
https://blog.csdn.net/mydo/article/details/2969377

CodePudding user response:

reference 5 floor of the giant panda Hou Pei reply:
add me more than a decade before an article C embedded assembly:

Used to write special requests of strlen
https://blog.csdn.net/mydo/article/details/2969377


My god, how did you learn? Just look at the GCC official documentation? Are there any other detail information? Thank you!
  • Related