473,848 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

good c compiler

howdy!

please recommend a good c compiler.

- should be small
- should be fast
- should come with a good ide
- should be inexpensive

i am using windows os.

awaiting replies.
Sep 23 '08
159 7149
jacob navia wrote:
....
No. That is the original lcc, without the work I have done:

o C89: no long long, nor long double.
long double was a C89 feature. If you're sure than lcc doesn't support
long double, then it doesn't even conform to C89.
Sep 24 '08 #31
James Kuyper wrote:
jacob navia wrote:
...
>No. That is the original lcc, without the work I have done:

o C89: no long long, nor long double.

long double was a C89 feature. If you're sure than lcc doesn't support
long double, then it doesn't even conform to C89.
long double declarations are recognized and silently ignored.

The resulting code is the same as double

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Sep 24 '08 #32
jacob navia wrote:
long double declarations are recognized and silently ignored.

The resulting code is the same as double
I don't see how those can both be true at once. I think you
mean that the "long" in "long double" declarations is ignored.
Am I right?

--
'It changed the future .. and it changed us.' /Babylon 5/

Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England

Sep 24 '08 #33
jacob navia wrote:
James Kuyper wrote:
>jacob navia wrote:
...
>>No. That is the original lcc, without the work I have done:

o C89: no long long, nor long double.

long double was a C89 feature. If you're sure than lcc doesn't support
long double, then it doesn't even conform to C89.

long double declarations are recognized and silently ignored.

The resulting code is the same as double
It is permitted for 'long double' and 'double' to have the same exact
size, alignment requirements, and representation. However, it is not the
case that they are allowed to be treated as if they were the same type.
As a result, the two declarations below are incompatible:

double func(double);
long double func(long double ld) { return ld++;}

A diagnostic is required. Does lcc produce that diagnostic?
Sep 24 '08 #34
Chris Dollin wrote:
jacob navia wrote:
>long double declarations are recognized and silently ignored.

The resulting code is the same as double

I don't see how those can both be true at once. I think you
mean that the "long" in "long double" declarations is ignored.
Am I right?
Yes. Long double is equivalent to double. This is a legally correct
way of ignoring long double, as Microsoft does. I implemented long
double in lcc-win and it is a floating type with more precision than
double.

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Sep 24 '08 #35
James Kuyper wrote:
jacob navia wrote:
>James Kuyper wrote:
>>jacob navia wrote:
...
No. That is the original lcc, without the work I have done:

o C89: no long long, nor long double.

long double was a C89 feature. If you're sure than lcc doesn't
support long double, then it doesn't even conform to C89.

long double declarations are recognized and silently ignored.

The resulting code is the same as double

It is permitted for 'long double' and 'double' to have the same exact
size, alignment requirements, and representation.

Of course, but then... you just do not implement it.
>
A diagnostic is required. Does lcc produce that diagnostic?
Yes

--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
Sep 24 '08 #36
jacob navia wrote:
s0****@gmail.co m wrote:
.... snip ...
>
>Is the 'lcc' compiler listed below the 'The Digital Mars C
compiler' the same as Jacob's lcc-win?

No. That is the original lcc, without the work I have done:

o C89: no long long, nor long double.
o No assembler, you have to use microsoft assembler
o no linker
o no debugger, nor the possibility of a debugger since it
doesn't generate debug information.
o No ide
None of which even slightly affects its viability as a C compiler.
Well, you can argue about the C89 acceptance, but lcc-win32 doesn't
accept C99 code either. gcc at least publishes a complete (modulo
bugs) list of missing C99 features.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home .att.net>
Try the download section.
Sep 24 '08 #37
On 24 sep, 14:54, jacob navia <ja...@nospam.c omwrote:
James Kuyper wrote:
jacob navia wrote:
The resulting code is the same as double
It is permitted for 'long double' and 'double' to have the same exact
size, alignment requirements, and representation.

Of course, but then... you just do not implement it.
Does lcc-win32 use a different size, alignment or representation for
each of the integer types char, short, int, long and long long?
Or have you also not implemented one of those?
--
jacob navia
Bart v Ingen Schenau
Sep 24 '08 #38
bernard wrote:
howdy!

please recommend a good c compiler.

- should be small
- should be fast
- should come with a good ide
- should be inexpensive

i am using windows os.

awaiting replies.

Look over the page at http://www.thefreecountry.com/compilers/cpp.shtml


Sep 24 '08 #39
jacob navia wrote:
James Kuyper wrote:
jacob navia wrote:
James Kuyper wrote:
jacob navia wrote:
...
No. That is the original lcc, without the work I have done:

o C89: no long long, nor long double.

long double was a C89 feature. If you're sure than lcc doesn't
support long double, then it doesn't even conform to C89.

long double declarations are recognized and silently ignored.

The resulting code is the same as double
It is permitted for 'long double' and 'double' to have the same exact
size, alignment requirements, and representation.


Of course, but then... you just do not implement it.
....
A diagnostic is required. Does lcc produce that diagnostic?

Yes
I asked my question because your earlier wording suggested the
possibility that lcc treats long double as a synonym for double. That
is what I would consider "not implementing it". If lcc does in fact
treat them as distinct but identically-implemented types, I would
describe that as "implementi ng long double the same way that double is
implemented".
Sep 24 '08 #40

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

Similar topics

30
3533
by: Christian Seberino | last post by:
How does Ruby compare to Python?? How good is DESIGN of Ruby compared to Python? Python's design is godly. I'm wondering if Ruby's is godly too. I've heard it has solid OOP design but then I've also heard there are lots of weird ways to do some things kinda like Perl which is bad for me. Any other ideas?
1
13294
by: lovens weche | last post by:
Is there a good editor that can be used with a 32 bit compiler under the MS-Dos platform? I used to use the Watcom C++ 11 compiler but the editor that came with it (VI if I remeber) was not that great, in fact it was horrible. I'm searching for a Borland C++ style editor and a good C++ 32 bit compiler. Doesn't really matter if the compiler doesn't optimize the code. Thanx in advance... Lovens
7
6181
by: Kyle Stevens | last post by:
Does anyone know of and good, and free, C++ compiler programs and where I might download them?
3
1958
by: happy | last post by:
I am searching over the net for a Good C compiler that has good editor .. Tc 2.01 has bad editor . please advice me with aweb site for downloading the godd Editor C compiler NOT C++. Thanks
9
3034
by: myhotline | last post by:
Hi all, After googling i came across Pelles C, is it a good C compiler over Windows( I am using Windows Xp )...Though Pelles C website says its a C99-compliant compiler, even though i would like somebody to tell me abnout this C99-COmpliance? Are there any other good C99-compliant comilers available for windows....please do let me know.... Any cooperation at earliest will be highly appreciated... REgards -Ahmed
43
2681
by: Sensei | last post by:
Hi! I'm thinking about a good programming style, pros and cons of some topics. Of course, this has nothing to do with indentation... Students are now java-dependent (too bad) and I need some serious motivations for many issues... I hope you can help me :) I begin with the two major for now, others will come for sure! - function variables: they're used to java, so no pointers. Personally I'd use always pointers, but why could be better...
87
3853
by: H. | last post by:
I am a student taking a machine structures class in a university, which includes learning C. I am looking for a good freeware or shareware compiler which can be used in a "C only" mode. C++ isn't allowed in assignments, and I would like the compiler to check for C syntax instead of C++ syntax. Besides that, ease of use for a beginner and basic debugging capabilities are important. Suggestions are welcome.
244
9641
by: Ajinkya | last post by:
Can anyone suggest me a good compiler for(c/cpp) for windows? I tried dev cpp but its debugging facility is very poor.
23
3160
by: tonytech08 | last post by:
What I like about the C++ object model: that the data portion of the class IS the object (dereferencing an object gets you the data of a POD object). What I don't like about the C++ object model: that most OO features are not available for class object design without loss of POD-ness. So, I'm more than leaning toward "bad" because of the limitations and
0
9892
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9735
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10997
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10661
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9497
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5731
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4134
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3172
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.