>> У C по стандарту есть:
> Не забудь еще про freestanding прочитать, умник.Если я в чём-то где то не прав - подскажите пожалуйста. В данном контексте мне, к сожалению, не понятна суть Вашего замечания. Из стандарта, всё, что касается freestanding environment:
4. Conformance
...
6 The two forms of conforming implementation are hosted and freestanding. ...
A conforming freestanding implementation shall accept any strictly conforming program in which the use of the features specified in the library clause (clause 7) is confined to the contents of the standard headers <float.h>, <iso646.h>, <limits.h>, <stdalign.h>, <stdarg.h>, <stdbool.h>, <stddef.h>, <stdint.h>, and <stdnoreturn.h>. A conforming implementation may have extensions (including additional library functions), provided they do not alter the behavior of any strictly conforming program.4)
4) This implies that a conforming implementation reserves no identifiers other than those explicitly reserved in this International Standard.
5.1.2 Execution environments
1 Two execution environments are defined: freestanding and hosted. In both cases,
program startup occurs when a designated C function is called by the execution
environment. All objects with static storage duration shall be initialized (set to their
initial values) before program startup. The manner and timing of such initialization are
otherwise unspecified. Program termination returns control to the execution
environment
5.1.2.1 Freestanding environment
1 In a freestanding environment (in which C program execution may take place without any
benefit of an operating system), the name and type of the function called at program
startup are implementation-defined. Any library facilities available to a freestanding
program, other than the minimal set required by clause 4, are implementation-defined.
2 The effect of program termination in a freestanding environment is implementationdefined.
5.1.2.4 Multi-threaded executions and data races
1 ... Under a freestanding implementation, it is implementation-defined whether a program can have more than one thread of execution.