[an error occurred while processing this directive] [an error occurred while processing this directive]
Что значит "НЕ РЕКОМЕНДОВАНО" ?! Что значит "НЕ РЕКОМЕНДОВАНО" ?!!!
(«Телесистемы»: Конференция «Микроконтроллеры и их применение»)
[an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive]

Отправлено Linuxoid 14 ноября 2001 г. 15:25
В ответ на: Запрещено конвенцией :-). В С оператор goto использовать сильно НЕ РЕКОМЕНДОВАНО. А Вы из прерывания и не туда...(+) отправлено abivan 14 ноября 2001 г. 12:02

Цитата из книги Scott Maxwell'a "Linux core kernel - Commentary", ch.2, p.423:
"..In practice, some ways of writing the code produce the faster executable than other. The kernel developers know which ways are
the faster way, and the code they write reflect this knowledge.
For example, consider the kernel's frequent use of goto - the kernel often resort to this ordinarily shunned feature in the name of speed.
.. The density for the whole kernel is about 1 goto per 260 lines."

----------------------------------------------------------------------
Хотя в данном случае использование goto безусловно полный гемморой
и является признаком плохо продуманного решения :)

Составить ответ  |||  Конференция  |||  Архив

Ответы



Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание  |||  Без кадра

E-mail: info@telesys.ru