473,770 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Downloadable standards file?

I previously had asked if there was an online standards file so I could
read that and answer my own questions without posting here and getting
flamed for not having done my homework.

I was pointed to a file called n1124.pdf which turns out to be a C99
standard. It appears that quoting from that standard makes a lot of
people say "but C99 isn't widely supported, so C90 is what you ought to do."

Is there a C90 file I can download for free and cross reference with my
C99 one?

I have seen the FAQ 11.2 that says it's available for purchase. Given
that the C99/N1124.PDF appeared to be free from
http://www.open-std.org/jtc1/sc22/wg...docs/n1124.pdf, I was hoping
that there was at least a "good enough" C90 one also for free.

(Aside: if the consensus is to reject the new standard, why should one
be created? Do the people who say to use C90 really think it's better to
lock C forever to that? If my compiler is C99, shouldn't I be encouraged
to conform to that standard?)
Dec 14 '06
53 2910
jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
The version of lcc I am working with runs in Power-PC, linux,
windows, and several embedded processors.
The web page for lcc-win32, <http://www.cs.virginia .edu/~lcc-win32/>,
mentions nothing other than MS Windows.

The lcc compiler on which lcc-win32 is based,
<http://www.cs.princeto n.edu/software/lcc/>, supports more platforms,
but doesn't have much in the way of C99 support as far as I can tell
from a quick look at the web page. In particular, the FAQ says:

| Q. Does lcc support the long long type?
|
| A. Yes, lcc 4.1 supports long long, but all of its backends currently
| use the same representation for long and long long, i.e., 32 bits
| on 32-bit targets and 64 bits on 64-bit targets.

Making long long 32 bits hardly seems to indicate that the maintainers
are working very hard on C99 conformance. (I'd much rather have
"long long" rejected as a syntax error than have the compiler quietly
make it 32 bits.)

Am I missing something? (If I am, then so is anyone else who looks at
the web pages; if a feature isn't advertised, it might as well not
exist.)

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 16 '06 #41
Mark McIntyre <ma**********@s pamcop.netwrite s:
On 15 Dec 2006 23:59:12 GMT, in comp.lang.c , ri*****@cogsci. ed.ac.uk
(Richard Tobin) wrote:
>>In article <ln************ @nuthaus.mib.or g>,
Keith Thompson <ks***@mib.orgw rote:
>>>C99 is currently the official standard *according to ISO rules*.

And C90 is no longer an ISO standard.

Since it's clearly still a standard, but not a de jure standard,
it must be a de facto standard.

mhm.
>>Like, say, gcc...

False extrapolation. gcc is an implementation of a standardised
language.
It depends on how you look at it. In one sense, gcc implements the
C90 standard (modulo bugs), and partially implements the C99 standard.
In another sense, the language that gcc supports by default (C with a
number of extensions) can be considered to be a distinct language, or
at least a distinct dialect.

From the latter point of view, this:

#include <stdio.h>
int main(void)
{
printf("%s\n", ({ char *s = "xxHello, world"; s + 2;}));
return 0;
}

is not a C program, but it is a GNU C program. GNU C is a language
based on C, as C++ and Objective-C are.

I don't want to start an argument about what is and is not C, or what
the terms "language" and "dialect" mean, merely to mention that there
is another perspective.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 16 '06 #42
Keith Thompson a écrit :
jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
>>The version of lcc I am working with runs in Power-PC, linux,
windows, and several embedded processors.


The web page for lcc-win32, <http://www.cs.virginia .edu/~lcc-win32/>,
mentions nothing other than MS Windows.

The lcc compiler on which lcc-win32 is based,
<http://www.cs.princeto n.edu/software/lcc/>, supports more platforms,
but doesn't have much in the way of C99 support as far as I can tell
from a quick look at the web page. In particular, the FAQ says:

| Q. Does lcc support the long long type?
|
| A. Yes, lcc 4.1 supports long long, but all of its backends currently
| use the same representation for long and long long, i.e., 32 bits
| on 32-bit targets and 64 bits on 64-bit targets.

Making long long 32 bits hardly seems to indicate that the maintainers
are working very hard on C99 conformance. (I'd much rather have
"long long" rejected as a syntax error than have the compiler quietly
make it 32 bits.)

Am I missing something? (If I am, then so is anyone else who looks at
the web pages; if a feature isn't advertised, it might as well not
exist.)
There are versions for

o Windows 64 bits
o Linux 64 bits and Linux 32 bits
o Power PC 64 bits

This is not the original version of lcc, that is C89, but lcc-win32
with all the stupid extensions like true 64 bits long long, and
other C99 support. No they are not advertised in that web page because
they are sold, not given away for free.

Dec 16 '06 #43
jacob navia wrote
(in article <45************ **********@news .orange.fr>):
Keith Thompson a écrit :
>jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
>>The version of lcc I am working with runs in Power-PC, linux,
windows, and several embedded processors.


The web page for lcc-win32, <http://www.cs.virginia .edu/~lcc-win32/>,
mentions nothing other than MS Windows.

The lcc compiler on which lcc-win32 is based,
<http://www.cs.princeto n.edu/software/lcc/>, supports more platforms,
but doesn't have much in the way of C99 support as far as I can tell
from a quick look at the web page. In particular, the FAQ says:
>>Q. Does lcc support the long long type?

A. Yes, lcc 4.1 supports long long, but all of its backends currently
use the same representation for long and long long, i.e., 32 bits
on 32-bit targets and 64 bits on 64-bit targets.

Making long long 32 bits hardly seems to indicate that the maintainers
are working very hard on C99 conformance. (I'd much rather have
"long long" rejected as a syntax error than have the compiler quietly
make it 32 bits.)

Am I missing something? (If I am, then so is anyone else who looks at
the web pages; if a feature isn't advertised, it might as well not
exist.)

There are versions for

o Windows 64 bits
o Linux 64 bits and Linux 32 bits
o Power PC 64 bits

This is not the original version of lcc, that is C89, but lcc-win32
with all the stupid extensions like true 64 bits long long, and
other C99 support. No they are not advertised in that web page because
they are sold, not given away for free.
So your point is that I should buy your compiler, for C99
support on a tiny subset of the platforms I'm interested in, so
I can have C99 support I don't need, instead of the free or
commercial compilers I have already purchased that fulfill all
my needs from them already?

Is it even legal to sell it? I note in particular from the lcc
Copyright message the following:

"You may not sell lcc or any product derived from it in which it
is a significant part of the value of the product. Using the lcc
front end to build a C syntax checker is an example of this kind
of product."

You compiler is obviously a lot more based upon their compiler
than a syntax checker would be.

So, you admit publicly to selling a product, which by your own
description appears to be a clear violation of the copyright
under which the code is it based on was provided to you? IANAL,
but it's difficult to imagine how that isn't what I just saw
happen here.
>


--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Dec 16 '06 #44
Randy Howard a écrit :
jacob navia wrote
>>There are versions for

o Windows 64 bits
o Linux 64 bits and Linux 32 bits
o Power PC 64 bits

This is not the original version of lcc, that is C89, but lcc-win32
with all the stupid extensions like true 64 bits long long, and
other C99 support. No they are not advertised in that web page because
they are sold, not given away for free.


So your point is that I should buy your compiler, for C99
support on a tiny subset of the platforms I'm interested in, so
I can have C99 support I don't need, instead of the free or
commercial compilers I have already purchased that fulfill all
my needs from them already?
I am not selling anything to you. Is that clear?
Is it even legal to sell it? I note in particular from the lcc
Copyright message the following:

"You may not sell lcc or any product derived from it in which it
is a significant part of the value of the product. Using the lcc
front end to build a C syntax checker is an example of this kind
of product."

You compiler is obviously a lot more based upon their compiler
than a syntax checker would be.
I have rewritten most of it. But see below.
So, you admit publicly to selling a product, which by your own
description appears to be a clear violation of the copyright
under which the code is it based on was provided to you? IANAL,
but it's difficult to imagine how that isn't what I just saw
happen here.

This is NONE of your business. It is MY business. And I have
BOUGHT THE COPYRIGHT from the editor of lcc for a SUBSTANTIAL
quantity of money. I am still paying that loan.

I am not a thief, and you are just somebody that feels a need
to discharge your aggressions (like many people in this group).
against me. I work, I do not just stay around, I try to contribute
to the C community.

Jealous people are to be expected.

I understand your point of view:

" Jacob tries to improve the language, works like a fool,
distributes the compiler under windows for free, that's obviously
a THIEF, and whatever else I want to imagine."

You are just wrong Mr.

What I have done?

Saying that the current standard is C99?

Trying to implement the current standard in my small implementation?

This brings me the aggressions of many people like you here,
that always have "STANDARD C" in their mouths but never contribute
anything to the community.

You like gcc. That's OK. Obviously you do not like the improvements
they did, even if many of them were included in the C99 standard
later.

What have you contributed to gcc?

jacob
Dec 16 '06 #45
jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
What I have done?

Saying that the current standard is C99?

Trying to implement the current standard in my small implementation?

This brings me the aggressions of many people like you here,
that always have "STANDARD C" in their mouths but never contribute
anything to the community.
[...]

Saying that the current standard is C99 is fine. What annoys me
(speaking only for myself) is your repeated assertion that C90 is
off-topic in this newsgroup.

Trying to implement C99 in lcc-win32 is great. Trying to tell us that
we should discuss *only* C99 in this newsgroup is not. The fact that
your own compiler does not fully implement the C99 standard just adds
to the irony. If I listened to you, I would just write code that
freely uses C99 features such as, say designated initializers -- and I
wouldn't be able to compile it if I chose to use your compiler.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 16 '06 #46
Keith Thompson a écrit :
jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
>>What I have done?

Saying that the current standard is C99?

Trying to implement the current standard in my small implementation?

This brings me the aggressions of many people like you here,
that always have "STANDARD C" in their mouths but never contribute
anything to the community.

[...]

Saying that the current standard is C99 is fine. What annoys me
(speaking only for myself) is your repeated assertion that C90 is
off-topic in this newsgroup.

Trying to implement C99 in lcc-win32 is great. Trying to tell us that
we should discuss *only* C99 in this newsgroup is not. The fact that
your own compiler does not fully implement the C99 standard just adds
to the irony. If I listened to you, I would just write code that
freely uses C99 features such as, say designated initializers -- and I
wouldn't be able to compile it if I chose to use your compiler.
This is not what I said!

< QUOTE FROM MY ANSWER >

The people that told you that standard C is "rejected" here are speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

There is a group of people here that think that C should be as
backward looking as possible, they reject C99 want to come to 1989
and maybe even earlier.

Who cares?

The current standard is C99.

< END QUOTE>

NOWHERE did I say that C90 is "OFF TOPIC" and I am NOT KNOWN for being a
traffic cop here. I do not remember ever arguing with "off topic"
arguments.

I argue with other arguments (correct or incorrect as you like)
but not "off topic" stuff.

Personally of course, I believe C90 is obsolete, as the standard
organization says. But if someone speaks about C90 (or MSDOS
or whatever!) I do not say that has nothing to do with C (within
limits of course).
Dec 16 '06 #47
jacob navia <ja***@jacob.re mcomp.frwrites:
Keith Thompson a écrit :
>jacob navia <ja***@jacob.re mcomp.frwrites:
[...]
>>>What I have done?

Saying that the current standard is C99?

Trying to implement the current standard in my small implementation?

This brings me the aggressions of many people like you here,
that always have "STANDARD C" in their mouths but never contribute
anything to the community.
[...]
Saying that the current standard is C99 is fine. What annoys me
(speaking only for myself) is your repeated assertion that C90 is
off-topic in this newsgroup.
Trying to implement C99 in lcc-win32 is great. Trying to tell us
that
we should discuss *only* C99 in this newsgroup is not. The fact that
your own compiler does not fully implement the C99 standard just adds
to the irony. If I listened to you, I would just write code that
freely uses C99 features such as, say designated initializers -- and I
wouldn't be able to compile it if I chose to use your compiler.

This is not what I said!
Then perhaps I've misunderstood you.
< QUOTE FROM MY ANSWER >

The people that told you that standard C is "rejected" here are speaking
for themselves. The current standard is C99, and that standard makes
older standards obsolete.

There is a group of people here that think that C should be as
backward looking as possible, they reject C99 want to come to 1989
and maybe even earlier.

Who cares?

The current standard is C99.

< END QUOTE>

NOWHERE did I say that C90 is "OFF TOPIC" and I am NOT KNOWN for being a
traffic cop here. I do not remember ever arguing with "off topic"
arguments.

I argue with other arguments (correct or incorrect as you like)
but not "off topic" stuff.
Ok, but here's something else you wrote in this very thread:
| IBM Provides a C99 compiler for AIX. HPUX and TRUE64 use Compaq C, that
| provides C99 support as they say in their web page.
| SCO I do not know, but Windows you have many compilers with C99
| support.
|
|
| In any case I do not want to force you to use C99, but we are
| discussing C here, not portability.
|
| This NOT comp.lang.porta ble (as far as I see)

You emphasized that C99 is the current standard, and I inferred from
your mention of "comp.lang.port able" that you feel that comp.lang.c
should only discuss the C language as defined by the current standard.
Personally of course, I believe C90 is obsolete, as the standard
organization says.
What exactly do you mean by "obsolete"? It's quite obvious to me that
the C90 standard is *not* obsolete, in any reasonable sense of the
word, for reasons that have been discussed at great length.
But if someone speaks about C90 (or MSDOS
or whatever!) I do not say that has nothing to do with C (within
limits of course).
No, but you do complain when someone points out that the use of a
C99-specific feature makes a program less portable. I've always
assumed that your objections were based on topicality.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 16 '06 #48
Keith Thompson a écrit :
No, but you do complain when someone points out that the use of a
C99-specific feature makes a program less portable. I've always
assumed that your objections were based on topicality.
If we go on saying that the C99 standard will be never
implemented. Since too little was done to improve the
language in C99, the few improvements it brings
will be gone. We stay then with a language that doesn't
evolve, completely frozen.

This arranges all people that see C++ as the future,
and all people that think C is a dead end.

I have tried to go against this trend, by implementing
as far as I could C99 features and offering other possibilities within
the context of C.

Of course people that are interested in maintaining code bases
that are no longer being developed do not want anything
like that, hence the clashes here.

This group is not for portabilitry PER SE. Portability is ONE
of the features by which a software can be measured. Many OTHERS
exist like efficiency, effort needed to maintain it, etc etc.

I am against making "portabilit y" by the smallest common
denominator the law here. That is the reason for my attitude.
Dec 16 '06 #49
jacob navia <ja***@jacob.re mcomp.frwrites:
Keith Thompson a écrit :
>No, but you do complain when someone points out that the use of a
C99-specific feature makes a program less portable. I've always
assumed that your objections were based on topicality.

If we go on saying that the C99 standard will be never
implemented. Since too little was done to improve the
language in C99, the few improvements it brings
will be gone. We stay then with a language that doesn't
evolve, completely frozen.

This arranges all people that see C++ as the future,
and all people that think C is a dead end.

I have tried to go against this trend, by implementing
as far as I could C99 features and offering other possibilities within
the context of C.

Of course people that are interested in maintaining code bases
that are no longer being developed do not want anything
like that, hence the clashes here.

This group is not for portabilitry PER SE. Portability is ONE
of the features by which a software can be measured. Many OTHERS
exist like efficiency, effort needed to maintain it, etc etc.

I am against making "portabilit y" by the smallest common
denominator the law here. That is the reason for my attitude.
Nobody here, as far as I've seen, says that C is a dead end (except
perhaps for a few trolls); that's a figment of your imagination.

It is a fact that C99 has not been widely adopted. Programmers *must*
take that fact into account in deciding whether to use C99-specific
features. Maximum portability is achieved by writing code in the
subset of C90 and C99 (basically C90 code that avoids the new C99
keywords). (Note that such code is also valid C99 code.)

People point this out, and you complain about it.

I, for one, would be happer if C99 *were* as widely available as C90
is, and I'm sure a lot of other people here feel the same way. But
since I'm not a compiler implementer, I have no real influence over
that. I applaud you for the part you're playing in helping that to
happen. But your whining about the fact that some of us insist on
acknowledging the current reality does not do the cause any good.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Dec 16 '06 #50

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

Similar topics

4
2070
by: Boniface Frederic | last post by:
Hello, I want to set some files downloadable only by members with login and password. I use session to protect my .html and .php files, but I would like to know how to protect .zip files. The .zip files are in a folder protected with a .htaccess file with the members data as password file. When a member is already connected and click on a download link, a connect
3
2214
by: JJ | last post by:
Hi, I am writing a cart in ASP selling downloadable files. The files are stored on remote locations i.e. http://www.thisfilestore.com/file1.zip And have different extensions, i.e. they are not all zip files. I would like to write a script which cann be called which will allow the download of the file, without giving away the url. Any Ideas/examples welcome!
9
2216
by: Xah Lee | last post by:
is the Microsoft javascript doc downloadable? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/js56jsoriJScript.asp or, is there some other downloadable complete javascript ref for offline reading? Xah xah@xahlee.org ∑ http://xahlee.org/
144
6952
by: Natt Serrasalmus | last post by:
After years of operating without any coding standards whatsoever, the company that I recently started working for has decided that it might be a good idea to have some. I'm involved in this initiative. Typically I find that coding standards are written by some guy in the company who has a way of coding that he likes and then tries to force everybody else to write code the way he likes it, not for any rational reason, but simply for the...
2
1312
by: TJS | last post by:
is there a downloadable chm help file for asp.net ?
3
1693
by: Hongbo | last post by:
Hi, We have a web site which needs user to login. After login, there are some files available for download on some pages. A typical link of such file is like this one: https://www.ourdomain.com/docs/contracts/c_02102006.pdf I noticed that any one could get this file if the person knows this link regardless if this person has logged in or not. Is there a way to prevent people who do not login to reach such downloadable files? Thank...
2
2042
by: gen_tricomi | last post by:
THE IMPORTANCE OF MAKING THE GOOGLE INDEX DOWNLOADABLE I write here to make a request on behalf of all the programmers on earth who have been or are intending to use the Google web search API for either research purposes or for the development of real world applications, that Google make their indexes downloadable. Currently application programmers using the Google web search API are
4
1566
by: Jim Aikin | last post by:
I'd like to learn JavaScript while sitting in my easy chair with my laptop on my lap. Option 1: Buy a wireless router so I can access the plethora of online- only tutorials from anywhere in the house. Option 2: Buy a book and try to figure out how to read a book with one hand while using the laptop with the other. Option 3: Find a good downloadable tutorial (either PDF or a bundle of
0
9454
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
10101
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
9906
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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.