Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.snto-msu.net/showflat.php?Number=2797570&src=arc&showlite=
Дата изменения: Unknown
Дата индексирования: Wed Apr 13 09:28:34 2016
Кодировка: Windows-1251
нужен стандарт ANSI C. - Public forum of MSU united student networks
Root | Google | Yandex | Mail.ru | Kommersant | Afisha | LAN Support
  
Technical >> Development (Archive)

Страницы: 1
LIfelike
old hand

Рег.: 27.02.2004
Сообщений: 765
Из: Б
Рейтинг: 0
  нужен стандарт ANSI C.
      03.05.2005 12:33
 

Есть ли у кого-нибудь описание стандарта ANSI C образца 88-89 года (точно не помню, когда его родили)?
Официальный документ не обязателен (хотя желателен), главное - полнота и достоверность.
ЗЫЖ в инете есть только неофициальные списки фич, а официальный текст платный



- Похоже, ваш сын столкнулся с экзистенционализмом...
- Е**ный Интернет!
Vital303
tired

Рег.: 18.10.2004
Сообщений: 480
Рейтинг: 44
  Re: нужен стандарт ANSI C. [re: LIfelike]
      03.05.2005 13:12
 

comp.lang.c Frequently Asked Questions

11.2: How can I get a copy of the Standard?

A: Copies are available in the United States from

American National Standards Institute
11 W. 42nd St., 13th floor
New York, NY 10036 USA
(+1) 212 642 4900

and

Global Engineering Documents
15 Inverness Way E
Englewood, CO 80112 USA
(+1) 303 397 2715
(800) 854 7179 (U.S. & Canada)

In other countries, contact the appropriate national standards
body, or ISO in Geneva at:

ISO Sales
Case Postale 56
CH-1211 Geneve 20
Switzerland

(or see URL http://www.iso.ch or check the comp.std.internat FAQ
list, Standards.Faq).

At the time of this writing, the cost is $130.00 from ANSI or
$400.50 from Global. Copies of the original X3.159 (including
the Rationale) may still be available at $205.00 from ANSI or
$162.50 from Global. Note that ANSI derives revenues to support
its operations from the sale of printed standards, so electronic
copies are *not* available.

In the U.S., it may be possible to get a copy of the original
ANSI X3.159 (including the Rationale) as "FIPS PUB 160" from

National Technical Information Service (NTIS)
U.S. Department of Commerce
Springfield, VA 22161
703 487 4650

The mistitled _Annotated ANSI C Standard_, with annotations by
Herbert Schildt, contains most of the text of ISO 9899; it is
published by Osborne/McGraw-Hill, ISBN 0-07-881952-0, and sells
in the U.S. for approximately $40. It has been suggested that
the price differential between this work and the official
standard reflects the value of the annotations: they are plagued
by numerous errors and omissions, and a few pages of the
Standard itself are missing. Many people on the net recommend
ignoring the annotations entirely. A review of the annotations
("annotated annotations") by Clive Feather can be found on the
web at http://www.lysator.liu.se/c/schildt.html .

The text of the Rationale (not the full Standard) can be
obtained by anonymous ftp from ftp.uu.net (see question 18.16)
in directory doc/standards/ansi/X3.159-1989, and is also
available on the web at
http://www.lysator.liu.se/c/rat/title.html . The Rationale has
also been printed by Silicon Press, ISBN 0-929306-07-4.

See also question 11.2a below.

11.2a: Where can I get information about updates to the Standard?

A: You can find some information at the web sites
http://www.lysator.liu.se/c/index.html and http:/www.dmk.com.

DarkGrayМодератор
Carpal Tunnel

Рег.: 30.09.2002
Сообщений: 31415
Рейтинг: 8952
  Re: нужен стандарт ANSI C. [re: LIfelike]
      03.05.2005 13:14
 

\\z81\pub\Околокомпьютерные тексты\Program Languages(old)\Cpp\c standart - iso9899-c99.pdf

LIfelike
old hand

Рег.: 27.02.2004
Сообщений: 765
Из: Б
Рейтинг: 0
  Re: нужен стандарт ANSI C. [re: DarkGray]
      03.05.2005 14:52
 

это стандарт С99, а нужен ANSI 1989 года



- Похоже, ваш сын столкнулся с экзистенционализмом...
- Е**ный Интернет!
Basilio
GreenOne

Рег.: 14.10.2002
Сообщений: 13750
Из: Москва
Рейтинг: 3476
  Re: нужен стандарт ANSI C. [re: LIfelike]
      03.05.2005 18:46
 

Сомневаюсь, что можно найти этот стандарт в "нормированном" виде.
А зачем старый стандарт?

LIfelike
old hand

Рег.: 27.02.2004
Сообщений: 765
Из: Б
Рейтинг: 0
  Re: нужен стандарт ANSI C. [re: Basilio]
      04.05.2005 01:53
 

Вот и я уже сомневаюсь

Задача такая: есть транслятор со специализированного языка в С99, который потом компилируется gcc. Теперь надо пересадить эту цепочку с gcc на старый, но испытанный компилятор ANSI C 89.
Нужно подкрутить транслятор, чтобы он корректно генерировал код ANSI C 89. Для этого надо знать много мелкой и нудной бадяги вроде способа упаковки структур, обработки битовых полей и побитовых операций, сочетаний знакового и беззнакового и т.п.




- Похоже, ваш сын столкнулся с экзистенционализмом...
- Е**ный Интернет!
Basilio
GreenOne

Рег.: 14.10.2002
Сообщений: 13750
Из: Москва
Рейтинг: 3476
  Re: нужен стандарт ANSI C. [re: LIfelike]
      04.05.2005 06:28
 

а также помудохаться с прототипами функций

feather
enthusiast

Рег.: 19.04.2003
Сообщений: 208
Рейтинг: 61
  Re: нужен стандарт ANSI C. [re: Basilio]
      04.05.2005 11:08
 

В каком смысле? В С89 уже не K&R прототипы.

Основное, на что придется посмотреть, это инициализация сложных типов, и проследить за тем, чтобы определения всех переменных были в начале блока. В остальном, за исключением фенечек, не должно быть никаких проблем. Можно пинать выход Вашего транслятора через gcc вместе с -std=c89 -pedantic.

И еще можно посмотреть на исходники gcc, в новом С парсере (c-parser.c) явно отмечены места, которые не являются С89. (NB: в этом случае лучше взять один из последних снапшотов, нового парсера еще не было в gcc 4.0)


Страницы: 1

Technical >> Development (Archive)

Дополнительная информация
0 зарегистрированных и 0 анонимных пользователей просматривают этот форум.

Модераторы:  DarkGray 

Печать темы

Права
      Вы можете создавать новые темы
      Вы можете отвечать на сообщения
      HTML отключен
      UBBCode включен

Рейтинг:
Просмотров темы:

Переход в