What is the best compiler for a beginner learning C?

In summary: Does anyone know the size of the standalone VC++ download?The download is quite large, around 2GB. However, you can install it on multiple computers.
  • #1
thedude36
30
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
  • #2
Try MinGW. It's a port of GCC for Windows. (I develop almost exclusively on Linux, so I haven't used it.)
 
  • #3
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.
 
  • #4
Rereading the OP, GCC is probably not the way to go for a beginner.
 
  • #5
Download Pelles C its an IDE strictly for C in windows. Pelles uses LCC
 
  • #6
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.
 
  • #7
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.
 
  • #8
Visual Studio is fairly simple to use. However, when I don't use that, I use Pelles or DevC++.
 
  • #9
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.
 

1. What is the best compiler for C on Windows?

The best compiler for C on Windows is subjective and depends on personal preference and project needs. Some popular options include Microsoft Visual Studio, GCC, and Clang.

2. Is there a free compiler for C on Windows?

Yes, there are free compilers for C on Windows such as GCC and Clang. Microsoft Visual Studio also offers a free Community Edition for non-commercial use.

3. Can I use a Linux compiler on Windows?

Yes, it is possible to use a Linux compiler on Windows through tools such as Cygwin or Windows Subsystem for Linux (WSL).

4. Do I need a special compiler for 64-bit Windows?

No, most compilers for C on Windows support both 32-bit and 64-bit architectures. However, it is important to check the compiler's documentation to ensure compatibility.

5. Which compiler is better for beginners learning C on Windows?

It is recommended for beginners to use a compiler with a user-friendly interface and easy-to-understand error messages. Some popular options for beginners include Code::Blocks, Dev-C++, and Pelles C.

Similar threads

  • Programming and Computer Science
Replies
20
Views
2K
  • Programming and Computer Science
Replies
13
Views
2K
  • Programming and Computer Science
Replies
14
Views
2K
  • Programming and Computer Science
2
Replies
59
Views
5K
  • Programming and Computer Science
Replies
11
Views
2K
  • Programming and Computer Science
Replies
26
Views
5K
  • Programming and Computer Science
Replies
9
Views
1K
  • Programming and Computer Science
Replies
8
Views
866
  • Programming and Computer Science
2
Replies
69
Views
4K
Back
Top