Thread: Differentiate between Borland's 'Turbo C' and Bloodshed 'Dev-C'

  1. #1
    Registered User
    Join Date
    Apr 2011
    Location
    Karachi, Pakistan
    Posts
    19

    Question Differentiate between Borland's 'Turbo C' and Bloodshed 'Dev-C'

    Hello,

    I was taught to do programming in Borland's 'Turbo C' a good time ago. Recently I took part in a speed programming contest that employed 'C' language as the standard medium. Now when I came to look at the details, it said that the IDE used will be Bloodshed 'Dev-C'. I am starting to prepare for the contest but I dont know how far the two versions of 'C' are analogous and where they differ. Please someone guide me so that I shoud get compatible with the Dev-C.

    Please dont go into the details on difference between filing systems or the Manufacturer's info. Just the the difference between source code or its style is required.

    Thanks in advance!!

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    An IDE would include a compiler, but it is not a compiler by itself, so you should check what is the compiler used. It would most likely be gcc as that is bundled by default, but even then knowing which version of gcc will be used could be helpful.

    EDIT:
    Well, not only the version of the compiler, but also whether you will be compiling with respect to what version of the C standard, or if you have a choice to begin with.
    Last edited by laserlight; 04-09-2013 at 01:29 AM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Apr 2011
    Location
    Karachi, Pakistan
    Posts
    19
    Yes. It uses MinGW port of GCC (GNU Compiler Collection) as it's compiler. It can creates native Win32 executables, either console or GUI, as well as DLLs and static libraries.

    Please, I just found that one cannot use <conio.h> library file in Dev 'C' (as I used to to do in Turbo C). More such differences are required!!

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Well, Turbo C is notorious around here for being the compiler of choice of teachers who teach using outdated and non-standard dialects of C. I think you're wrong about the <conio.h> thing as I recall some support in that area, but otherwise that is an example of a non-standard library.

    My suggestion is to prepare by reading up on standard C. Make sure that you don't rely on undefined behaviour or implementation defined behaviour that just happened to "work" with your Turbo C compiler, e.g., things like assuming that the order of evaluation will be in a certain way when it isn't, or using fflush(stdin), or as you noted, relying on a non-standard library that happens to come with Turbo C.
    Last edited by laserlight; 04-09-2013 at 01:54 AM.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > Differentiate between Borland's 'Turbo C' and Bloodshed 'Dev-C'
    One is 20 years out of date, and the other is only 10 years out of date.

    If you like dev-c++, but want something current, then try Orwell Dev-C++ | Free Development software downloads at SourceForge.net
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What's the best use of Borland's Turbo C ?
    By CommonTater in forum General Discussions
    Replies: 14
    Last Post: 09-03-2011, 12:08 PM
  2. Borland Turbo C++ 3.0 config
    By mariano_donati in forum C Programming
    Replies: 16
    Last Post: 04-23-2008, 03:27 PM
  3. Borland's Turbo C++ appearence
    By skorman00 in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-19-2004, 12:22 AM
  4. What is Borland and Turbo
    By pratapgj in forum C Programming
    Replies: 1
    Last Post: 07-30-2002, 11:36 AM
  5. File I/O in Borland Turbo C++ v4.5
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 03-13-2002, 03:09 PM