Choosing the right C++ compiler

This is a discussion on Choosing the right C++ compiler within the C++ Programming forums, part of the General Programming Boards category; Hi All, What is the best tool to write kernel drivers and low level network programming? Dev-Cpp++, Borland C++, VC++ ...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    9

    Choosing the right C++ compiler

    Hi All,

    What is the best tool to write kernel drivers and low level network programming?

    Dev-Cpp++, Borland C++, VC++ 8.0?

    Regards,
    Thomas

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,437
    It doesn't really matter. A compiler is a compiler and will work the same, regardless of which compiler you choose.
    It's up to your preference, really.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Elysia View Post
    It doesn't really matter. A compiler is a compiler and will work the same, regardless of which compiler you choose.
    It's up to your preference, really.
    You mean he can use Visual C++ to write UNIX kernel drivers?

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,437
    Obviously not, but that's obvious.
    If you are going to write for platform X, then use a compiler than runs on platform X and not platform Y.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Technical Lead QuantumPete's Avatar
    Join Date
    Aug 2007
    Location
    London, UK
    Posts
    894
    Quote Originally Posted by Elysia View Post
    Obviously not, but that's obvious.
    I think you're crediting newbies with too much insight...

    QuantumPete
    "No-one else has reported this problem, you're either crazy or a liar" - Dogbert Technical Support
    "Have you tried turning it off and on again?" - The IT Crowd

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by thomas_joyee View Post
    Hi All,

    What is the best tool to write kernel drivers and low level network programming?

    Dev-Cpp++, Borland C++, VC++ 8.0?

    Regards,
    Thomas
    For Windows, you would use the compiler that comes with the DDK (Device Driver Kit) for driver programming. That way, you are using a compiler that has been verified to compile driver code correctly - and yes, there are differences between the compiler in the DDK and the compiler supplied with the Visual Studio IDE. You can still use the VS IDE to modify the code, and there are tools to allow you to compile the driver within the IDE as well. But you definitely should compile using the DDK's compiler. It is perhaps possible to use gcc or Borland to produce a working driver, but there's absolutely no guarantee that it works, and there's no support in the DDK for this.

    For application level programming ("low level network programming", I take to mean non-kernel code, but working with network protocols in user mode), I would probably choose Visual Studio, but that's a more open choice.

    As pointed out, if you are working with a different OS than Windows, then you need a different compiler.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  2. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 05:42 AM
  3. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 10:28 AM
  4. Help With finding a compiler
    By macman in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-15-2005, 08:15 AM
  5. choosing a compiler
    By almost_here in forum Game Programming
    Replies: 4
    Last Post: 11-29-2001, 06:20 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21