Re: Can we use cpp to write WDM driver ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



440gtx@xxxxxxxxx wrote:

platform in there too. Interesting how Microsoft decided not to do
this with their x64 compiler (int & long stayed 32-bit) since it would
have broken so much code despite the DDK and others inventing its own
data types (a la ULONG) long ago.

"Interesting" is the wrong word for it. "Insulting" would be more
accurate. A decade ago, we programmers somehow managed to be smart enough
to handle the 16-bit to 32-bit transition as "int" moved from being a
16-bit quantity to a 32-bit quantity.

Now, however, Microsoft thinks we are all too stupid to handle that
transition again, and so we are left with the utterly ridiculous situation
of having a compiler in which NONE of the standard C types actually matches
the native register width of the machine.

The Linux folks laugh at this, of course. gcc on AMD64 has 64-bit longs,
as any reasonable person would have done. Their programmers manage to
handle it just fine.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: how to get aliagned memory using malloc
    ... > Some told me that for memory to be aligned, the last 6 digits of the ... It depends on the internals of your platform. ... have restrictions on where certain data types may be placed, ... is why it is part of the implementation of a compiler. ...
    (comp.lang.c)
  • Re: how to get aliagned memory using malloc
    ... >>Some told me that for memory to be aligned, the last 6 digits of the ... It depends on the internals of your platform. ... > have restrictions on where certain data types may be placed, ... > is why it is part of the implementation of a compiler. ...
    (comp.lang.c)
  • Re: A Query
    ... Sharad Kala wrote: ... >>Hello Grp, ... >Try out some newsgroup dedicated for your platform. ... if you don't like the data types or the functions names, ...
    (comp.lang.cpp)
  • Re: C performance
    ... >> anymore. ... Just change the data types to double and move on. ... Which is faster on your platform? ... (2reply remove FOOBAR) ...
    (comp.lang.c)