CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

General purpose C compiler
Goto page 1, 2  Next
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
mkuang



Joined: 14 Dec 2007
Posts: 257

View user's profile Send private message Send e-mail

General purpose C compiler
PostPosted: Fri Sep 25, 2009 2:29 pm     Reply with quote

This is a bit off topic but can someone recommend a good general purpose C compiler for Windows XP? Not for microcontrollers but something that will work for C programs written for data manipulation, such as reading in a text file with numbers and perform statistical analysis as such.
Ttelmah
Guest







PostPosted: Fri Sep 25, 2009 2:46 pm     Reply with quote

It depends massively on what you want to do.
If you are happy with simple command line style output, get hold of something really old, like an early copy of TurboC. Something like 2.01. Free, and for command line use, nothing is much better. If however you want to actually integrate with Windows, then you will need to look at something latter. I think the last version of Visual Studio, to have a pure 'C', as opposed to C++, was about V5 or V6.

Best Wishes
kfarr
Guest







PostPosted: Fri Sep 25, 2009 4:23 pm     Reply with quote

GCC has a windows ports.

sourceforge_._net/projects/gcw
mingw_._org

Then there's always cygwin...
cygwin_._com
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sat Sep 26, 2009 2:20 am     Reply with quote

Quote:
I think the last version of Visual Studio, to have a pure 'C', as opposed to C++, was about V5 or V6.
I don't understand the meaning of this statement. All MS compilers from 16-Bit Visual C/C++ 1.5 and first 32-Bit Visual C/C++ 2.0 to the most recent Visual Studio 2008 have the option to compile native C code. Visual Studio V6 (originated from 1998) is the last classical MS C/C++ compiler without NET and C# extensions and used up to now to maintain many "long-life" applications.

For simple "windowed" applications, C++Builder is a good choice in my opinion.

Among the free compilers, OpenWatcom www.openwatcom.org should be mentioned.

P.S.: You possibly mean Microsoft C (without "visual"). The last pure C compiler I have seen from Microsoft is MSC 5.1 from 1988. There may be a V6.x as well.


Last edited by FvM on Sat Sep 26, 2009 2:36 am; edited 1 time in total
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Sat Sep 26, 2009 2:28 am     Reply with quote

http://www.smorgasbordet.com/pellesc/

This was pointed out to me when I was looking for Windows Mobile compilers, but it also does desktop Windows. I haven't yet downloaded it to see what it's like.
_________________
Andrew
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Sat Sep 26, 2009 3:54 pm     Reply with quote

I'm strictly a non-programmer on computers, but sometimes you just need something to exercise the harware, and then you want to be able to write something quick and dirty that does the job. I've used this free compiler and found it quite easy to get things running. In particular, it has a "wizard" to set up the shell of a program that saves you having to deal with all the rigmarole of creating a program to run under Windows.

I don't think command line progams are acceptable in the modern world. It's not too difficult to do better than that.

http://www.cs.virginia.edu/~lcc-win32/
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

about smargasbord -pelles 'c'
PostPosted: Sun Sep 27, 2009 6:28 pm     Reply with quote

I tried pelles C a while back but it was a TOTAL bust.

reason #1

Does not support the windows serial API for com ports , w/o writing a DMA supporting lib from scratch.
It has an IO32 lib BUT it can ONLY handle register based UART serial
and parallel port access.

BTW: all modern notebooks don't tend to HAVE uarts at all.

To get serial data ports - you have to use an Edgeport or similar PIC with USB mediated "virtual RS-232" translation.

w/o a lot of pain - I could not get serial com working and abandoned it.

In the end it was much struggle for no results.
andrewg



Joined: 17 Aug 2005
Posts: 316
Location: Perth, Western Australia

View user's profile Send private message Visit poster's website

PostPosted: Sun Sep 27, 2009 10:11 pm     Reply with quote

Obviously I haven't actually tried it, but the Pelles C include files have all the Win32 serial API functions mentioned in http://msdn.microsoft.com/en-us/library/ms810467.aspx

If the rest of the Windows API is working fine, I see no reason why this specific set wouldn't? Unless you were looking for the Win16 OpenComm function and friends, that were removed in the Win32 API?
_________________
Andrew
mkuang



Joined: 14 Dec 2007
Posts: 257

View user's profile Send private message Send e-mail

PostPosted: Wed Sep 30, 2009 8:06 am     Reply with quote

Thanks for all your replies. The main application I am looking for is to sort through comma delimited files like an excel spreadsheet stored as a .txt file or something like that. So it nees to handle possibly tens of thousands of rolls of data. Obviously it will need standard IOs such as opening and closing files. I remember using something like it when I was in college (it was awhile ago) and it was UNIX based. So I am not sure what is out there right now for Windows XP or Vista.
mmprestine



Joined: 13 Jan 2004
Posts: 29
Location: Green Bay, Wisconsin

View user's profile Send private message

PostPosted: Wed Sep 30, 2009 10:47 am     Reply with quote

Just download one of the Visual Studio Express editions from Microsoft. They will do everything you need for free.

http://www.microsoft.com/express/product/
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed Sep 30, 2009 11:51 am     Reply with quote

RE: VS express - Got it
hate it
one big PIG of an ide
with BLOAT and annoyance and crazy complexity - at every turn.
a typical M'soft offering.
in my opinion, worth considerably less than i paid for it
which was $0 too
Shocked Very Happy
rherrera72



Joined: 30 Sep 2009
Posts: 3

View user's profile Send private message

PostPosted: Wed Sep 30, 2009 6:46 pm     Reply with quote

Of course I can not recommend anything from micro$oft, bloodshed Dev-C++ is a very capable all purpose C compiler, take a look.

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

Best Regards.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed Sep 30, 2009 10:35 pm     Reply with quote

guilty as charged - i admit it yup - dev-c++ 4.0

doesn't suck in the least
John P



Joined: 17 Sep 2003
Posts: 331

View user's profile Send private message

PostPosted: Thu Oct 01, 2009 7:48 am     Reply with quote

I thought of writing a program to sort through comma delimited files like an excel spreadsheet stored as a .txt file using the lcc-win32 compiler I mentioned before, and it seemed very easy. Of course, that's the way every vastly underestimated project seems at first, but well--it seems very easy.

You'd have to explain "tens of thousands of rolls of data". I don't generally roll my data.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Thu Oct 01, 2009 8:16 am     Reply with quote

If all your doing is sorting through a text file,.. look at PERL.

It has been around a while in the unix world. but you can also
get it for the PC. It has lots of great little uses.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group