What is the best compiler for a beginner learning C?

  • Thread starter Thread starter thedude36
  • Start date Start date
  • Tags Tags
    Compiler Windows
Click For Summary

Discussion Overview

The discussion revolves around finding suitable compilers for beginners learning the C programming language. Participants share their experiences and recommendations regarding various compilers and IDEs, addressing concerns about compatibility and usability for new programmers.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses confusion over using C++ compilers for writing C code and seeks recommendations for beginner-friendly options.
  • Another suggests MinGW as a port of GCC for Windows, though they note their experience is primarily with Linux.
  • A participant mentions that any standard-compliant C++ compiler should compile valid C code, but also highlights potential issues with certain features considered 'bad' in C.
  • Dev-CPP is recommended as a free compiler and IDE suite, with an emphasis on its usability for beginners.
  • Pelles C is suggested as an IDE strictly for C on Windows, with a note about its use of LCC.
  • Visual C++ is deemed acceptable for beginners, with specific instructions on setting up a Win32 console application.
  • Concerns are raised about the complexity of the Visual C++ interface, with suggestions for creating an empty project to avoid default settings that may confuse new users.
  • Code::Blocks is mentioned as a nice compiler for Windows that works for both C and C++ code.
  • Some participants discuss the availability of the Professional version of Visual Studio for students and inquire about the download size of standalone versions.

Areas of Agreement / Disagreement

Participants present multiple competing views on the best compiler for beginners, with no consensus reached. Recommendations vary widely, and some express differing opinions on the suitability of certain compilers.

Contextual Notes

Some participants note that certain compilers may have limitations or features that are not standard in C, which could affect a beginner's learning experience. Additionally, there are mentions of compatibility issues with specific versions of Windows.

thedude36
Messages
30
Reaction score
0
I'm wanting to start learning C and I'm trying to find a good compiler. So far I've found a lot of C++ compilers and I'm not sure if it would let me write code in just C. I've downladed Visual C++ 2010 express, but the interface is kind of confusing me. I was wondering if anyone knew of a good compiler for a beginning programmer.
 
Technology news on Phys.org
Try MinGW. It's a port of GCC for Windows. (I develop almost exclusively on Linux, so I haven't used it.)
 
thedude36 said:
I'm wanting to start learning C and I'm trying to find a good compiler. So far I've found a lot of C++ compilers and I'm not sure if it would let me write code in just C. I've downladed Visual C++ 2010 express, but the interface is kind of confusing me. I was wondering if anyone knew of a good compiler for a beginning programmer.

As far as I am aware any decent standard-compliant C++ compiler should compile valid C code.

I do recall that there are some 'bastardized' ways of passing information, but if you use 'good' C code then everything should compile well.

I haven't used C for a while but I do remember that there were some features which I considered 'bad', but I started C with the C++ kind of programming style and not the 'C-Only' style.

My recommendation is to use a good C++ compiler to compile your C code.

One free compiler and IDE suite is Dev-CPP:

http://www.bloodshed.net/devcpp.html

You could if you wanted to just do everything by a command-line shell (or prompt for windows) but this is a lot of work to setup initially: I recommend you using something like Dev-CPP or Visual-Studio.

If you are overwhelmed by the later Visual Studio, see if you can get Visual Studio 6.0 or Visual C++ 6.0: its interface is minimal and still has enough features to get things done quickly.
 
Rereading the OP, GCC is probably not the way to go for a beginner.
 
Download Pelles C its an IDE strictly for C in windows. Pelles uses LCC
 
thedude36 said:
I'm wanting to start learning C and I'm trying to find a good compiler. So far I've found a lot of C++ compilers and I'm not sure if it would let me write code in just C. I've downladed Visual C++ 2010 express, but the interface is kind of confusing me. I was wondering if anyone knew of a good compiler for a beginning programmer.

Visual C++ should be acceptable for a beginner. A Visual C++ project has a collection of files associated with it, which are "source" and "header" files. The program's main function should go in a "source" file.

A beginner should start with an win32 console application (check "empty project"). You can create it from the wizard. Then you may add source file for your main function right clicking on the "Source Files" folder. Select .c or .cpp file.
 
camel-man said:
Download Pelles C its an IDE strictly for C in windows. Pelles uses LCC

I used to know somebody who used this compiler and he remarked that it was pretty good.

I would only caution the OP to be aware that the extensions like operator overloading are not in the original C standard and if they were going to use these custom extensions that they be aware of this fact.
 
Visual Studio is fairly simple to use. However, when I don't use that, I use Pelles or DevC++.
 
What part of the visual c++ interface is confusing to you? When I first started using visual c++, the main issue I ran into was creating a new project, and having to select "empty project" on the second menu (after clicking next) to avoid the stuff that visual c++ otherwise generates by default. The other issue I ran into was that unicode was on by default, and I had to right click on the project name, then properties, select "all configurations", and change "unicode" to "not set".

So starting with a new directory with just source files, create a project using that directory name, chose "empty project" when that option appears, ... then once at the main menu, click on project, then "add existing item" to add the source files.
 
  • #10
Thanks for all the responses. Tried out Dev C++ but it said it wasnt able to run on 64 bit versions of windows. but I figured out what i needed to know for visual c++ and am now able to compile and run programs, so I am pretty excited. Thanks again for the help!
 
  • #11
If you're a student you can generally get the Professional version of Visual Studio for free from Microsoft. https://www.dreamspark.com/
 
  • #12
jhae2.718 said:
If you're a student you can generally get the Professional version of Visual Studio for free from Microsoft. https://www.dreamspark.com/


Does anyone know the size of the standalone VC++ download? I am currently on a limited plan.
 
  • #13
The image file I have is 2.2 GB for VS2010 Pro through MSDN AA.
 
  • #14
A nice compiler for Windows would be Code::Blocks. I use it on my PC when I need to run some C++ code. This also works for C as well.
 
  • #15
Visual Studio Express 2010 is free (and is very good); it has a C compiler (technically C++, but as long as you aren't doing graphical user interfaces, you can just compile C with it.
 

Similar threads

  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
14
Views
4K
Replies
59
Views
9K
  • · Replies 26 ·
Replies
26
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 20 ·
Replies
20
Views
5K
  • · Replies 8 ·
Replies
8
Views
6K
Replies
4
Views
2K