Re: No Inline-Assembly for x64 Builds?
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 24 Feb 2009 03:23:18 -0500
It does, but what possible good would it do? As I said, no self-respecting driver writer
would think that assembly code made sense in a device driver. Perhaps you are thinking
"MS-DOS Device Drivers". Modern device drivers don't use it. They haven't used it since
the release of 32-bit Windows.
The latest numbers I heard were that of the many millions of lines of code in the Windows
kernel, there are only about 15K lines of assembly code, and those exist only at the
lowest level interfaces to the hardware. Device drivers do not live at that level (I
co-authored a book and course on writing device drivers, and teach that course today, and
I've not seen a driver that needed assembly code, or found any reason that a programmer
would ever need to actually write it).
Most assembly code deals with using the MMX instructions, and they cannot be used
effectively in the kernel (in general, it costs more to set up to use them than they would
typically save)
joe
On Mon, 23 Feb 2009 23:47:57 -0800, "boris" <somewhere@xxxxxxxxxxx> wrote:
Joseph M. Newcomer [MVP]
"boris" <somewhere@xxxxxxxxxxx> wrote in message
news:49a3a589$0$1609$742ec2ed@xxxxxxxxxxxxxxxxx
"Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>I meant inline x64 assembly.
wrote in message news:O1fsfkklJHA.4760@xxxxxxxxxxxxxxxxxxxxxxx
Kerem Gümrükcü wrote:What about WDK: does it support inline assembly?
Hi,
am i right when i remember that Visual C++ 2008
has NO support for x64 Assembly Instructions. But
what if i want or even have to write some assembly
code and want to use it in my x64 Code? What then?
I have some C-Dlls that are 32Bit and they use some
32Bit Assembly Language. So if the __asm is no more
for x64, how can i include it anyway into my Dll's? Do
i have to work with external x64 Assembler and then link
object code to my VC++ Dll, or is there any other "Inline"
Method i can use?
No, there's no other way. If you need x64 assembly, you have to author a
separate assembly-only module, assemble it with ml64 and link it into
your DLL/EXE.
Does WDK support it?
Boris
Boris
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: No Inline-Assembly for x64 Builds?
- Next by Date: Re: No Inline-Assembly for x64 Builds?
- Previous by thread: Re: No Inline-Assembly for x64 Builds?
- Next by thread: Re: No Inline-Assembly for x64 Builds?
- Index(es):
Relevant Pages
|