Jump to content
  • Advertisement
Sign in to follow this  
PennstateLion

whats a good *free "C" compiler

This topic is 4865 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
You can try gcc. If you want other suggestions, you might want to mention what operating system you are using.

Share this post


Link to post
Share on other sites
Any C++ compiler you can get nowadays will handle C, and vice versa. GCC is the main free one. Mainly, you just name files that are in C with a .c extension, and files that are in C++ with a .cpp or .cxx extension (the first is more popular). If you're using Visual Studio, it will automatically detect which to use based on the extension, I believe.

Share this post


Link to post
Share on other sites
oh ok.. ya im on XP

I do have visual studio.net 2003

so if i just create a new win32 console project in C++, and rename the source file from .cpp to .c the compiler will recognize that im using C?

Share this post


Link to post
Share on other sites
MSVC should recoginze a .c file as C source. However, MSVC does not implement most of the additions to C in C99 like VLAs, stdint.h and so on.

Share this post


Link to post
Share on other sites
A good c++ compiler is DJGPP
www.delorie.com/djgpp/
it makes 32 bit dos aplications(protected mode) much faster than 16 bit borland c++ dos aplications

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You may try tcc "Tiny C Compiler"...google for it it's 7 times faster than gcc(they say so) any very light..

Share this post


Link to post
Share on other sites
Also, maybe you could try Dev-C++. It automatically detects changes from C to C++ and vice versa. Also supports both, has customizable GUI and an update system that makes use of "Dev Packs". Link to their site.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!