Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GeSHi has a deprecated constructor in /srv/http/www.cosmoslang.org/wiki/cookbook/geshi/geshi.php on line 259
Portable | Cosmos Programming Language

Portable

While C/C++ is deliberately designed to not be portable from the get go. Which library writers has to spend quite some effort on, in order to make sure their libraries are portable.

Cosmos is designed to at least facilitate portability, in the usual ways we have come to expect from other modern langauges. Which most impotantly means that all integer, float and character types are fixed sizes, and consistent alignment across all platforms.

However, Cosmos still facilitates the ability to tailor code to particular platforms, when performance is a necessity. This is possible in part by means of using the

types, and by means of inline assembly.

What's probably more profound is, that Cosmos is meant to also work on embedded systems, with as little as a few kilobytes of memory, and very limited CPU power.

Page last modified on July 16, 2016