473,399 Members | 3,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

convenient C/C++ compiler

need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.

thanks

Oct 1 '06 #1
21 1724

<po*******@softhome.netwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.
"Convenient" means different things to different folks.
For the meaning of "easily and quickly acquirable, and
inexpensive (in this case free)", see www.gnu.org
"Ease of use" is of course, in the eye of the beholder.
Good luck.

-Mike
Oct 1 '06 #2
On 1 Oct 2006 12:04:32 -0700, po*******@softhome.net wrote:
>need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.
"Convenience" is strictly tied to which platform your source codes are
built for.
Oct 1 '06 #3
po*******@softhome.net wrote:
need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.
Please specify convenient:
- Which platform?
- GUI indispensable? Or dare you the terror of the command line?

Note that
- this is not exactly a C question, so some people may see it as
off-topic. However, the comp.lang.c wiki offers the following:
http://clc-wiki.net/wiki/C_resources
- "C/C++" is a rather dangerous term; you have two separate languages
C and C++. Compiling C code with a C++ compiler is not advisable as
the languages are sufficiently different to give you headaches (the
programme cannot be compiled or, worse, it can be compiled and linked
but the executable does not always do what it is supposed to do).
If you decide to use a compiler/IDE with C and C++ support both, then
make sure that you use the C mode to avoid nasty surprises.

Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Oct 1 '06 #4
Michael Mair said:
po*******@softhome.net wrote:
>need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.

Please specify convenient:
- Which platform?
Windows - betcha.
- GUI indispensable?
Yes - betcha.
Or dare you the terror of the command line?
What's a command line? - betcha.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 1 '06 #5
Michael Mair писал(а):
po*******@softhome.net wrote:
need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.
Please specify convenient:
- Which platform?
- GUI indispensable? Or dare you the terror of the command line?
Note that
- this is not exactly a C question, so some people may see it as
off-topic. However, the comp.lang.c wiki offers the following:
http://clc-wiki.net/wiki/C_resources
- "C/C++" is a rather dangerous term; you have two separate languages
C and C++. Compiling C code with a C++ compiler is not advisable as
the languages are sufficiently different to give you headaches (the
programme cannot be compiled or, worse, it can be compiled and linked
but the executable does not always do what it is supposed to do).
If you decide to use a compiler/IDE with C and C++ support both, then
make sure that you use the C mode to avoid nasty surprises.
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
-------------

Yes, sure, i need to amplify:
1. I meant free C compiler
2. for ms windows xp platform
3. I would attempt to use command line compiler (as a spare variant, I
need also GUI compiler (another )
4. by convenient i meant tool designed to compile code, not huge IDE
tool platform with plenty of tunings.

thanks.

Oct 1 '06 #6
Richard Heathfield wrote:
Michael Mair said:
>>po*******@softhome.net wrote:
>>>need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.

Please specify convenient:
- Which platform?

Windows - betcha.
>>- GUI indispensable?

Yes - betcha.
>>Or dare you the terror of the command line?

What's a command line? - betcha.
All quite probable. However, the OP seemed to need some help in
getting started with the "smart questions". And, for me, a command
line for many things is a thousand times more convenient than a
GUI (which may hide too much) :-)
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.
Oct 1 '06 #7
On Windows, this is free as in beer and truly a pleasure to use.
http://msdn.microsoft.com/vstudio/ex...ualc/download/

Only thing you need to remember is to name all source files with .c for
C and .cpp for C++

On Linux you will be using gcc and I'd recommend ctags:
http://ctags.sourceforge.net/faq.html#1

Oct 1 '06 #8
pkirk25 wrote:
On Windows, this is free as in beer and truly a pleasure to use.
http://msdn.microsoft.com/vstudio/ex...ualc/download/
pleasure to use? I'll avoid it like the plague. gcc4life.
Oct 2 '06 #9
pkirk25 said:
On Windows, this is free as in beer and truly a pleasure to use.
http://msdn.microsoft.com/vstudio/ex...ualc/download/

Only thing you need to remember is to name all source files with .c for
C and .cpp for C++
That is generally true[1], not just true for Visual C. Perhaps you are
referring to "filename completion", whereby lazy gits don't bother typing
in *any* extension and simply assume instead that the IDE will be able to
guess what language they intend to use. Well, it tries. It doesn't try
terribly hard, though. In my case, the guess is wrong at least 99% of the
time.
[1] Some exceptions exist. For example, on some implementations .c means C
but .C (upper case) means C++. On others, C++ files are expected to end in
..cxx (turn your head slightly to one side). There are probably systems
where .c++ is expected. And of course there are some systems where the
concept of "file extension" is meaningless.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 2 '06 #10

pkirk25 писал(а):
On Windows, this is free as in beer and truly a pleasure to use.
http://msdn.microsoft.com/vstudio/ex...ualc/download/

Only thing you need to remember is to name all source files with .c for
C and .cpp for C++

On Linux you will be using gcc and I'd recommend ctags:
http://ctags.sourceforge.net/faq.html#1
---------------------

I want MinGW. There are plenty of packs in
http://www.mingw.org/download.shtml
What minimal pack i need for windows XP?

Oct 2 '06 #11
<po*******@softhome.netwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.

thanks
As you have said "EXE" that implies "Windows". As you are not a programmer I
would hazzard a guess that getting the code to work with a minimum of effort
is more important that small EXE size. If the programs have previously been
compiled on Windows , as most code has compiler and platform dependancies of
some kind, try and use whatever the original writer used.

If you (really) want compact EXE files over ease of getting it working, then
probably using a Windows/X86 specific compiler (i.e. non portable) compiler
such as Microsoft Visual C.

Dave.
Oct 2 '06 #12
>
>"mistral" <po*******@softhome.netwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...
>
pkirk25 ?????(?):
>On Windows, this is free as in beer and truly a pleasure to use.
http://msdn.microsoft.com/vstudio/ex...ualc/download/

Only thing you need to remember is to name all source files with .c for
C and .cpp for C++

On Linux you will be using gcc and I'd recommend ctags:
http://ctags.sourceforge.net/faq.html#1
---------------------

I want MinGW. There are plenty of packs in
http://www.mingw.org/download.shtml
What minimal pack i need for windows XP?
You will get a must better answer on a MINGW mailing list....
Oct 2 '06 #13
On Mon, 02 Oct 2006 04:58:44 +0000, in comp.lang.c , Richard
Heathfield <in*****@invalid.invalidwrote:
>pkirk25 said:
>On Windows, this is free as in beer and truly a pleasure to use.
http://msdn.microsoft.com/vstudio/ex...ualc/download/

Only thing you need to remember is to name all source files with .c for
C and .cpp for C++

That is generally true[1], not just true for Visual C. Perhaps you are
referring to "filename completion", whereby lazy gits don't bother typing
in *any* extension
Not necessary to blame the user - sometimes Windows tries to stick the
"right" ending on anyway.. try saving a file called "foo.dat" from
notepad and you get foo.dat.txt...
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Oct 2 '06 #14
Mark McIntyre said:
On Mon, 02 Oct 2006 04:58:44 +0000, in comp.lang.c , Richard
Heathfield <in*****@invalid.invalidwrote:
>Perhaps you are
referring to "filename completion", whereby lazy gits don't bother typing
in *any* extension

Not necessary to blame the user
Yes it is! :-)
- sometimes Windows tries to stick the
"right" ending on anyway.. try saving a file called "foo.dat" from
notepad and you get foo.dat.txt...
Not if you actually type "foo.dat" (complete with quotes), as I do.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 2 '06 #15
In article <td********************@bt.com>,
Richard Heathfield <in*****@invalid.invalidwrote:
And of course there are some systems where the
concept of "file extension" is meaningless.
Are there any C implementations where file extension is meaningless? I
believe that implementations are required to provide a way to make
extensions on source files themselves meaningful (IIRC up to one
not guaranteed case sensitive character for c89 and three for c99), for
the preprocessor, even if they're not meaningful for applications on the
target platform.
Oct 2 '06 #16
Jordan Abel said:
In article <td********************@bt.com>,
Richard Heathfield <in*****@invalid.invalidwrote:
>And of course there are some systems where the
concept of "file extension" is meaningless.

Are there any C implementations where file extension is meaningless?
LE370 and C/370 are both C implementations capable of running under OS390,
which doesn't have a file extension concept.
I
believe that implementations are required to provide a way to make
extensions on source files themselves meaningful (IIRC up to one
not guaranteed case sensitive character for c89 and three for c99), for
the preprocessor, even if they're not meaningful for applications on the
target platform.
Chapter and verse, please.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 2 '06 #17
In article <ra*****************************@news.individual.n et>,
Jordan Abel <ra*******@gmail.comwrote:
>In article <td********************@bt.com>,
Richard Heathfield <in*****@invalid.invalidwrote:
>And of course there are some systems where the
concept of "file extension" is meaningless.
>Are there any C implementations where file extension is meaningless? I
believe that implementations are required to provide a way to make
extensions on source files themselves meaningful (IIRC up to one
not guaranteed case sensitive character for c89 and three for c99), for
the preprocessor, even if they're not meaningful for applications on the
target platform.
C89's wording is,

There shall be an implementation-defined mapping between the
delimited sequence and the external source file name. The implementation
shall provide unique mappings for sequences consisting of one or more
letters (as defined in 2.2.1) followed by a period (.) and a single
letter. The implementation may ignore the distinctions of alphabetical
case and restrict the mapping to six significant characters before
the period.

So it would be valid to, for example, take the first up-to- six characters
of the header file name before the period, uppercase that, and
append the uppercase of the first character after the period, resulting
in a filename of 2 through 7 uppercase characters with the filesystem
knowing nothing about filename extensions. Or, related to that,
there are systems on which you pretty much cannot invoke the editor
except on files with certain extensions (e.g., the extension might
convey information about the internal file format).
(Now I've done it... I'm going to have flashbacks to my MVS days and
dream of STDIOH TEXT !)
--
There are some ideas so wrong that only a very intelligent person
could believe in them. -- George Orwell
Oct 2 '06 #18

David Wade wrote:
<po*******@softhome.netwrote in message
news:11**********************@h48g2000cwc.googlegr oups.com...
need advice for convenient C/C++ compiler. I do web development mainly,
i am not a programmer. Need compile few C source codes (ready). Compact
EXE size matters.

thanks

As you have said "EXE" that implies "Windows". As you are not a programmer I
would hazzard a guess that getting the code to work with a minimum of effort
is more important that small EXE size. If the programs have previously been
compiled on Windows , as most code has compiler and platform dependancies of
some kind, try and use whatever the original writer used.

If you (really) want compact EXE files over ease of getting it working, then
probably using a Windows/X86 specific compiler (i.e. non portable) compiler
such as Microsoft Visual C.

Dave.
--------
Is the M$ Visual C++ 2005 Express Edition suitable for this?

mistral

Oct 2 '06 #19
[I am using a new newsreader. I have a sneaking suspicion that this may
be posted in HTML format but cannot find any way to tell if this is the
case or how to turn it off. I'm hoping, though, that my suspicion is
incorrect]

On 2006-10-02 16:37:17 -0400, Richard Heathfield
<in*****@invalid.invalidsaid:
Jordan Abel said:
>In article <td********************@bt.com>,
Richard Heathfield <in*****@invalid.invalidwrote:
>>And of course there are some systems where the
concept of "file extension" is meaningless.

Are there any C implementations where file extension is meaningless?

LE370 and C/370 are both C implementations capable of running under
OS390, which doesn't have a file extension concept.
>I
believe that implementations are required to provide a way to make
extensions on source files themselves meaningful (IIRC up to one
not guaranteed case sensitive character for c89 and three for c99), for
the preprocessor, even if they're not meaningful for applications on the
target platform.

Chapter and verse, please.
n1124 6.10.2p5

The implementation shall provide unique mappings for sequences
consisting of one or
more letters or digits (as defined in 5.2.1) followed by a period (.)
and a single letter.
The first character shall be a letter. The implementation may ignore
the distinctions of
alphabetical case and restrict the mapping to eight significant
characters before the
period.

OK, so I was wrong, it wasn't extended to three characters. And it
doesn't say "filename extension", but there are a lot of terms that the
standard doesn't use. In effect, implementations are required to
provide at least 26 possible filename extensions, from .a to .z

Oct 2 '06 #20
Jordan Abel said:
[I am using a new newsreader. I have a sneaking suspicion that this may
be posted in HTML format but cannot find any way to tell if this is the
case or how to turn it off. I'm hoping, though, that my suspicion is
incorrect]
Panic's over, Jordan - you're coming through loud and text. :-)

In effect, implementations are required to
provide at least 26 possible filename extensions, from .a to .z
"In effect" being excellent weasel words. For example, any filesystem having
the . character in the set of characters that are legal for filenames will
be perfectly okay even if it doesn't have a clue about file extensions
(provided it conforms in other respects, of course, such as the number of
significant characters and so on).

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 2 '06 #21
po*******@softhome.net wrote:
Yes, sure, i need to amplify:
1=2E I meant free C compiler
2=2E for ms windows xp platform
3=2E I would attempt to use command line compiler (as a spare variant, I
need also GUI compiler (another )
4=2E by convenient i meant tool designed to compile code, not huge IDE
tool platform with plenty of tunings.
Then you want Dev-C++ (which also handles C):
<http://www.bloodshed.net/dev/index.html>.

Richard
Oct 3 '06 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff Epler | last post by:
Hello. Recently, Generator Comprehensions were mentioned again on python-list. I have written an implementation for the compiler module. To try it out, however, you must be able to rebuild...
3
by: dcrespo | last post by:
Hi all... There are py2exe, but it only works for Windows. Which would be the convenient(s) compiler(s) to deploy an executable that runs under Windows and under Linux (obviously, they have to be...
13
by: Bryan Parkoff | last post by:
You may notice that switch (...) is much faster than function that can gain a big improved performance because it only use JMP instruction however function is required to use CALL, PUSH, and POP...
10
by: Bjorn | last post by:
I'm using interfaces in C++ by declaring classes with only pure virtual methods. If then someone wants to implement the interface they needs to inherit from the class. If the implementing class...
1
by: Robert Oschler | last post by:
In pre-Windows XP Internet Explorer, adding a bookmarklet for a user was really simple. All I add to do was create a link that executed addFavorite(). Internet Explorer under Windows XP won't...
0
by: rollasoc | last post by:
Hi, I seem to be getting a compiler error Internal Compiler Error (0xc0000005 at address 535DB439): likely culprit is 'BIND'. An internal error has occurred in the compiler. To work around...
3
by: Mark Rockman | last post by:
------ Build started: Project: USDAver2, Configuration: Debug .NET ------ Preparing resources... Updating references... Performing main compilation... error CS0583: Internal Compiler Error...
5
by: Licheng Fang | last post by:
I want to store Chinese in Unicode internally in my program, and give output in UTF-8 or GBK format. After two days of searching and reading, I still cannot find a simple and straightforward way to...
41
by: Miroslaw Makowiecki | last post by:
Where can I download Comeau compiler as a trial version? Thanks in advice.
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.