Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1006

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1008

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1009

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1006

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1008

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1009

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Deprecated: Function create_function() is deprecated in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 468

Warning: Cannot modify header information - headers already sent by (output started at /srv/http/www.cosmoslang.org/wiki/pmwiki.php:468) in /srv/http/www.cosmoslang.org/wiki/pmwiki.php on line 1255
TranslationUnit | Cosmos Programming Language

TranslationUnit

Cosmos utilizes "separate compilation" of individual "translation units" into "object code". Object code is then "linked" together to form either "static libraries", "dynamic libraries", or "executables".

These concepts are well known from various C/C++ tool chains on many different platforms.

A single source file (typically with the extension .cm) represents the concept of a translation unit. This differs from C/C++ where a preprocessor is typically combining a source (.c/.cpp) file with many header (.h/.hpp) files to form a translation unit.

The most profound differences of Cosmos, compared to C/C++ is in the conversion of the source files to object files. The linking steps and resulting executables and libraries are directly comparable to C/C++ tool chains, and will be able to link directly to those.