|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi,
Do you know of any decent free simple C90 IDE+compiler for Windows for use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work correctly there. Any ideas would be welcome. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Ioannis Vranos wrote:
> Hi, > > Do you know of any decent free simple C90 IDE+compiler for Windows for > use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work > correctly there. > > Any ideas would be welcome. lcc-win is a C compiler used a lot in universities and educational settings. It features o IDE with windowed debugger o Compiler assembler, linker, make utility o Advanced IDE with spelling checker, tooltips, goto definition, software metrics, grep/search/diff, and many other utilities. o Small package installs in approx 1 minute. o Types: True long double precision long long type (64 bit integer) Optional 352 bits float (104 digits) 128 bit integers All normal types (int,double,float,short, etc) o Optional extensions like operator overloading/try-catch/ etc. o Educational licenses available. If interested contact me below. -- jacob navia jacob at jacob point remcomp point fr logiciels/informatique http://www.cs.virginia.edu/~lcc-win32 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Ioannis Vranos <ivranos@nospam.no.spamfreemail.gr> writes:
> Do you know of any decent free simple C90 IDE+compiler for Windows for > use in a classroom? I know Dev-C++/MINGW but "long double" doesn't > work correctly there. > > Any ideas would be welcome. As I recall from discussions here, the problem is an inconsistency between the compiler and the runtime library regarding the representation of long double. Either choice would be valid by itself, but the inconsistency is a bug. How much of a problem is that really? What if you just avoid the use of long double in the class? -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Ioannis Vranos said:
> Hi, > > Do you know of any decent free simple C90 IDE+compiler for Windows for > use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work > correctly there. Turbo C is fine, and is available for free download from the Borland museum site. BTW welcome back to clc :-) -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999 |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr>
wrote: > Hi, > > Do you know of any decent free simple C90 IDE+compiler for Windows for > use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work > correctly there. There is no 'long double' in C90. 'long double' was standarised in C99 AFAIK. Is long double that importand? |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
Ioannis Vranos wrote, On 03/02/08 21:30:
> Hi, > > Do you know of any decent free simple C90 IDE+compiler for Windows for > use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work > correctly there. > > Any ideas would be welcome. Check out the licensing terms on the free versions of MS Visual Studio. Also, whatever you go for, *please* find out how to put it in to ISO-conforming mode and start off by teaching standard portable C before you go on to any non-standard stuff, and when you do the non-standard stuff let the students know it is non-standard and not portable. -- Flash Gordon |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
vippstar@gmail.com said:
> On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr> > wrote: >> Hi, >> >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work >> correctly there. > There is no 'long double' in C90. Rubbish. See (the C90 equivalent of) 3.1.2.5 of C89. -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999 |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
jacob navia wrote:
> Ioannis Vranos wrote: >> Hi, >> >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't >> work correctly there. >> >> Any ideas would be welcome. > > lcc-win is a C compiler used a lot in universities and educational > settings. Jacob meant to declare an interest at this point as he is the maintainer of lcc-win32, and the beneficiary of any commercial license. For the non-Brits amongst you, "declaring an interest" is what our elected representatives are supposed to do when a law is under discussion from which they might financially benefit. (jacob, two things; 1) this is not an attack on you, its a simple clarification - so take your paranoid hat off; 2) your new email is in my killfile so no need to respond). -- Mark McIntyre CLC FAQ <http://c-faq.com/> CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt> |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
Mark McIntyre wrote:
> jacob navia wrote: >> Ioannis Vranos wrote: >>> Hi, >>> >>> Do you know of any decent free simple C90 IDE+compiler for Windows >>> for use in a classroom? I know Dev-C++/MINGW but "long double" >>> doesn't work correctly there. >>> >>> Any ideas would be welcome. >> >> lcc-win is a C compiler used a lot in universities and educational >> settings. > > Jacob meant to declare an interest at this point as he is the maintainer > of lcc-win32, and the beneficiary of any commercial license. > Yes. I have been working since 1995 in providing this compiler to many people and to the C community in general. This compiler is not supported by any big institution but by its users: universities, private people, several companies, and many other people that contributed to this project. -- jacob navia jacob at jacob point remcomp point fr logiciels/informatique http://www.cs.virginia.edu/~lcc-win32 |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
Mark McIntyre wrote:
[snip] 2) your new email is in my killfile ... Your killfile has a bug apparently. If not, how could you read my answers to posts here? :-) But obviously you can't write anything without a bug, not even a killfile! -- jacob navia jacob at jacob point remcomp point fr logiciels/informatique http://www.cs.virginia.edu/~lcc-win32 |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
Mark McIntyre said:
> jacob navia wrote: >> Ioannis Vranos wrote: >>> Hi, >>> >>> Do you know of any decent free simple C90 IDE+compiler for Windows for >>> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't >>> work correctly there. >>> >>> Any ideas would be welcome. >> >> lcc-win is a C compiler used a lot in universities and educational >> settings. > > Jacob meant to declare an interest at this point as he is the maintainer > of lcc-win32, and the beneficiary of any commercial license. He also forgot to mention that lcc-win32 has C90 conformance issues which generally seem to come as a complete surprise to him when they come to light here in comp.lang.c; apparently this is because he didn't bother to read the Standard all that closely when "improving" the software - after all, it's just boring techie stuff, right? Who wants to spend time reading that stuff, when they could be adding FEATURES? -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999 |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
vippstar@gmail.com writes:
> On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr> > wrote: >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work >> correctly there. > There is no 'long double' in C90. > 'long double' was standarised in C99 AFAIK. > Is long double that importand? Incorrect; long double is in C90. (I've seen compilers produce error messages that imply otherwise; those messages are incorrect.) -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#13 |
|
Messages: n/a
Hébergeur: |
Keith Thompson wrote:
> Ioannis Vranos <ivranos@nospam.no.spamfreemail.gr> writes: >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't >> work correctly there. >> >> Any ideas would be welcome. > > As I recall from discussions here, the problem is an inconsistency > between the compiler and the runtime library regarding the > representation of long double. Either choice would be valid by > itself, but the inconsistency is a bug. > > How much of a problem is that really? What if you just avoid the use > of long double in the class? > Ahh if gcc doesn't implement correctly long double... that is just a minor thing that doesn't matter. If lcc-win has some obscure name clashes with code written specially for that purpose that is a FATAL flaw. The regulars. Always so unbiased! :-) -- jacob navia jacob at jacob point remcomp point fr logiciels/informatique http://www.cs.virginia.edu/~lcc-win32 |
|
|
|
#14 |
|
Messages: n/a
Hébergeur: |
vippstar@gmail.com wrote:
> On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr> > wrote: >> Hi, >> >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work >> correctly there. > There is no 'long double' in C90. > 'long double' was standarised in C99 AFAIK. > Is long double that importand? It is a C90 built in type: long double ld= 0.1L; printf("%Lf", ld); |
|
|
|
#15 |
|
Messages: n/a
Hébergeur: |
jacob navia <jacob@nospam.com> writes:
> Keith Thompson wrote: >> Ioannis Vranos <ivranos@nospam.no.spamfreemail.gr> writes: >>> Do you know of any decent free simple C90 IDE+compiler for Windows for >>> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't >>> work correctly there. >>> >>> Any ideas would be welcome. >> >> As I recall from discussions here, the problem is an inconsistency >> between the compiler and the runtime library regarding the >> representation of long double. Either choice would be valid by >> itself, but the inconsistency is a bug. >> >> How much of a problem is that really? What if you just avoid the use >> of long double in the class? > > Ahh if gcc doesn't implement correctly long double... that > is just a minor thing that doesn't matter. I didn't say it doesn't matter. It's certainly a bug; I merely suggested that it might not be a show-stopping problem in a particular context. (If I recall correctly, it's not a bug in gcc; it's a bug in Dev-C++/MINGW's integration of gcc with the Microsoft runtime library. It should certainly be corrected somehow; I've never suggested otherwise.) > If lcc-win has some obscure name clashes with code written > specially for that purpose that is a FATAL flaw. No, it's not a fatal flaw. It's a bug, and it's a failure to conform to the standard. You should fix it. > The regulars. Always so unbiased! > > :-) Recently, when somebody's program failed to compile because of a bug in lcc-win, I suggested a possible workaround, namely avoiding the particular identifier that lcc-win incorrectly declared in a standard header. Now when someone mentions a conformance failure in Dev-C++/MINGW, I suggest a possible workaround, namely avoiding the use of type long double. So what bias are you talking about? Since you've jumped into this discussion (which wasn't about you or your compiler in the first place), I'll ask you whether you have any plans to fix this particular bug in lcc-win. (I don't ask the same thing about Dev-C++/MINGW simply because its maintainers don't post here, as far as I know.) -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#16 |
|
Messages: n/a
Hébergeur: |
Keith Thompson said:
> Ioannis Vranos <ivranos@nospam.no.spamfreemail.gr> writes: >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't >> work correctly there. >> >> Any ideas would be welcome. > > As I recall from discussions here, the problem is an inconsistency > between the compiler and the runtime library regarding the > representation of long double. Either choice would be valid by > itself, but the inconsistency is a bug. Right. > How much of a problem is that really? I'd have thought that the failure to implement a fundamental type correctly is a serious conformance issue. That's a big problem, surely? > What if you just avoid the use > of long double in the class? I see your point, but wouldn't it be simpler to use an implementation that conforms to C90? It's not as if there is any shortage of conforming implementations for the Windows platform - and many of them are free. Why use a broken implementation when working implementations are available? -- Richard Heathfield <http://www.cpax.org.uk> Email: -http://www. +rjh@ Google users: <http://www.cpax.org.uk/prg/writings/googly.php> "Usenet is a strange place" - dmr 29 July 1999 |
|
|
|
#17 |
|
Messages: n/a
Hébergeur: |
Keith Thompson wrote:
> Since you've jumped into this discussion (which wasn't about you or > your compiler in the first place), I'll ask you whether you have any > plans to fix this particular bug in lcc-win. (I don't ask the same > thing about Dev-C++/MINGW simply because its maintainers don't post > here, as far as I know.) > It is fixed already. And it is fixedf also the one about RAND_MAX. Will be there tomorrow. -- jacob navia jacob at jacob point remcomp point fr logiciels/informatique http://www.cs.virginia.edu/~lcc-win32 |
|
|
|
#18 |
|
Messages: n/a
Hébergeur: |
Ioannis Vranos <ivranos@nospam.no.spamfreemail.gr> writes:
> vippstar@gmail.com wrote: >> On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr> >> wrote: >>> Hi, >>> >>> Do you know of any decent free simple C90 IDE+compiler for Windows for >>> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work >>> correctly there. >> There is no 'long double' in C90. >> 'long double' was standarised in C99 AFAIK. >> Is long double that importand? > > > It is a C90 built in type: > > long double ld= 0.1L; > > printf("%Lf", ld); Of course. I was merely suggesting that, in a classroom context, it might be acceptable to work around this bug by avoiding the use of long double, or at least to avoid passing it to the *printf() functions. Implementing a function to create a string representation of a long double value (which printf *should* do) could even be a good exercise. It's your call, of course. -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#19 |
|
Messages: n/a
Hébergeur: |
Richard Heathfield <rjh@see.sig.invalid> writes:
> Keith Thompson said: >> Ioannis Vranos <ivranos@nospam.no.spamfreemail.gr> writes: >>> Do you know of any decent free simple C90 IDE+compiler for Windows for >>> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't >>> work correctly there. >>> >>> Any ideas would be welcome. >> >> As I recall from discussions here, the problem is an inconsistency >> between the compiler and the runtime library regarding the >> representation of long double. Either choice would be valid by >> itself, but the inconsistency is a bug. > > Right. > >> How much of a problem is that really? > > I'd have thought that the failure to implement a fundamental type correctly > is a serious conformance issue. That's a big problem, surely? As I recall, the type itself is implemented correctly; the bug is that the runtime library's implementation of printf doesn't handle it. It's a failure to conform to the standard, which is a serious problem. For an application that deons't use long double, it might not be a show-stopper. >> What if you just avoid the use >> of long double in the class? > > I see your point, but wouldn't it be simpler to use an implementation that > conforms to C90? It's not as if there is any shortage of conforming > implementations for the Windows platform - and many of them are free. Why > use a broken implementation when working implementations are available? I don't know enough about C implementations under Windows to judge how good they are. It's possible that Dev-C++/MINGW had advantages that might, in some contexts, outweigh this one bug. It's also possible that it doesn't. I was merely pointing out a possiblity. -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#20 |
|
Messages: n/a
Hébergeur: |
jacob navia <jacob@nospam.com> writes:
> Keith Thompson wrote: >> Since you've jumped into this discussion (which wasn't about you or >> your compiler in the first place), I'll ask you whether you have any >> plans to fix this particular bug in lcc-win. (I don't ask the same >> thing about Dev-C++/MINGW simply because its maintainers don't post >> here, as far as I know.) > > It is fixed already. And it is fixedf also the one > about RAND_MAX. Will be there tomorrow. Glad to hear it, especially after your previous attitude. Have you check for other non-standard identifiers in your standard headers? -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
|
|
#21 |
|
Messages: n/a
Hébergeur: |
On Feb 3, 4:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr>
wrote: > Hi, > > Do you know of any decent free simple C90 IDE+compiler for Windows for > use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work > correctly there. > > Any ideas would be welcome. Hi, in the same group as Jacob's lcc-win32, there's also PellesC that you want to check out. |
|
|
|
#22 |
|
Messages: n/a
Hébergeur: |
jacob navia wrote:
> If lcc-win has some obscure name clashes with code written > specially for that purpose that is a FATAL flaw. It's not that fatal, but you've been told about it so many times, and editing the headers with a copy of the standard (or even of n1256) in order to place those declarations in the #ifndef __ANSIC_ONLY__ would not be a very hard task, so your unwillingness to do that is fatal. -- Army1987 (Replace "NOSPAM" with "email") |
|
|
|
#23 |
|
Messages: n/a
Hébergeur: |
noagbodjivictor@gmail.com wrote:
> > there's also PellesC that you want to check out. Pelles C looks nice, but "unfortunately" it is a C99 compiler, and AFAIK it doesn't come with any C90 mode. The "unfortunate" thing is that it's file is about C99 only, so if people start checking C99 they can be out of C90 standard. |
|
|
|
#24 |
|
Messages: n/a
Hébergeur: |
On Sun, 3 Feb 2008 16:43:58 -0600, vippstar@gmail.com wrote
(in article <d1bc4eb1-43f1-4454-89e4-d7bfe26b1650@s12g2000prg.googlegroups.com>): > On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr> > wrote: >> Hi, >> >> Do you know of any decent free simple C90 IDE+compiler for Windows for >> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work >> correctly there. > There is no 'long double' in C90. > 'long double' was standarised in C99 AFAIK. > Is long double that importand? It seems that the problem here is duct taping an "almost C99 compiler" to the front of a "C90 plus funky extensions" library, and expecting it to work properly in all cases. I never ran into this issue personally, but I wont recommend either of the above when asked about windows compilers anymore either. -- Randy Howard (2reply remove FOOBAR) "The power of accurate observation is called cynicism by those who have not got it." - George Bernard Shaw |
|
|
|
#25 |
|
Messages: n/a
Hébergeur: |
Randy Howard <randyhoward@FOOverizonBAR.net> writes:
> On Sun, 3 Feb 2008 16:43:58 -0600, vippstar@gmail.com wrote > (in article > <d1bc4eb1-43f1-4454-89e4-d7bfe26b1650@s12g2000prg.googlegroups.com>): >> On Feb 3, 11:30 pm, Ioannis Vranos <ivra...@nospam.no.spamfreemail.gr> >> wrote: >>> Do you know of any decent free simple C90 IDE+compiler for Windows for >>> use in a classroom? I know Dev-C++/MINGW but "long double" doesn't work >>> correctly there. >> There is no 'long double' in C90. >> 'long double' was standarised in C99 AFAIK. >> Is long double that importand? > > It seems that the problem here is duct taping an "almost C99 compiler" > to the front of a "C90 plus funky extensions" library, and expecting it > to work properly in all cases. I never ran into this issue personally, > but I wont recommend either of the above when asked about windows > compilers anymore either. No, I don't believe this particular incompatibility has anything to do with C90 vs. C99. It's a purely C90 issue. -- Keith Thompson (The_Other_Keith) <kst-u@mib.org> Nokia "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister" |
|
![]() |
| Outils de la discussion | |
|
|