No problem.
Good luck,
mm
Mike Kemp wrote:
Thanks, that’s very useful info. This is only at the “what if” stage at
the moment but a lot of what I do is speculate in what is possible for
the next bright idea (and if I’m unlucky, implementing it). I had
misunderstood that asm was out. Now I think it will be possible to
create a BSOD faster than ever before. M>>>>>>>>>
From: Martin O’Brien
Newsgroups: ntdev
To: Windows System Software Devs Interest List
Sent: Tuesday, January 29, 2008 4:33 PM
Subject: Re:[ntdev] c++Definitely on topic, and certainly more so than anything else in this
thread. You can use assembler in the kernel, but on x64 (using
Microsoft tools) you must compile assembler seperately, and can not use
inline assembler in C or C++. That is, assembler must be in it’s own
source file. The WDK comes with x86_32 and x86_64 (and Itanium,
perhaps) versions of ML (MASM). I don’t recall exactly how one does
this with BUILD, but I seem to recall something about placing the file
in an architecture subdirectory and adding to SOURCES, but that may not
be correct. Check the WDK documentation for this.Good luck,
mm
Mike Kemp wrote:
> I think that it is necessary to build all drivers now for 64 bit as
> well as 32 bit OS, so does this mean excluding asm altogether? Or is
> there an approved MASM or equivalent for kernel use? So far I have
> avoided using assembler but I am now considering whether it is worth
> it to optimise some core routines and/or to use the DSP type
> instructions available in the latest CPUs. Thanks for any views…
> Sorry if this is off topic, but it has been about assemblers for the
> last few days so got me thinking. Mike.
>
>>>>>>
> From: Martin O’Brien
> Newsgroups: ntdev
> To: Windows System Software Devs Interest List
> Sent: Tuesday, January 29, 2008 3:34 PM
> Subject: Re:[ntdev] c++
>
>
> Also, on x64, CL does not support inline assembler, if that’s what he’s
> after.
>
> mm
>
>
> xxxxx@osr.com wrote:
>> [quote]
>> Is asm permitted in Kernel Mode?
>> [/quote]
>>
>> Permitted? Yes. Discouraged and a bad idea, except for certain very
>> specific instances? Also yes.
>>
>> Peter
>> OSR
>>
>>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer