bazisLib for kernel-mode drivers?

Sysprogs forums Forums VisualDDK/VirtualKD discussion bazisLib for kernel-mode drivers?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #157
    jtorjo
    Participant

    Hi guys,

    Can we use BazisLib for writing kernel mode drivers (on Windows OS)? I’ve seen a lot of discussion that only C should be used for kernel-mode drivers.

    Best,
    John

    #1320
    support
    Keymaster

    Yes, BazisLib fully supports writing kernel-mode drivers and even has several examples of compact and efficient object-oriented drivers.
    The discussion about “only C” is caused by the fact that misuse of C features would cause one write more lines, but misuse of C++ features causes one source line generate much more binary code (e.g. use of implicit std::string constructor from a constant string, when not needed), that results performance drop not noticeable by developer directly. That’s why, rather than carefully design C++ programs and check the result in disassembler for some cases, many developers prefer using “old plain C”.

    #1321
    jtorjo
    Participant

    What I’m referring to is this: http://www.microsoft.com/whdc/driver/kernel/KMcode.mspx

    Best,
    John

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.