Skip to content

tenko/ECSStdLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ECSStdLib

The ECS standard library defines modules supporting application development
with the ECS Oberon compiler, including:

The Const module defines constants reused throughout the library.

The stream concept is used troughout the modules to support formatting, reading and writing of data.
The module Type defines the basic stream type interface.

OS support is covered for the Windows and Linux platforms.
In addition for embedded platform basic support is added for the ARMv7M platform using
the semihost interface to the host computer.

The library is tested with about 750 unit tests.
These tests also can be inspected for basic usage where the documentation is not clear.

The ECS Oberon compiler is implemented according to the original Oberon-2 report with modernizing extensions.

Building & Running tests

Building

make

Running tests (Linux)

make TestMain

Running tests (Windows)

make TestMain.exe

Hello Word

HelloWorld.mod:

MODULE HelloWord;
 
IN Std IMPORT OSStream;
    
BEGIN
    OSStream.StdOut.WriteString("Hello World!");
    OSStream.StdOut.WriteNL;
END HelloWord.

Running (Windows)

ecsd HelloWorld.mod std.lib /c/EigenCompilerSuite/runtime/win64api.obf
./Test.exe
Hello World!

Note

Complete API Documentation: Link
Currently a patched version of the ECS compiler is needed Link
With the next release of the ECS compiler these patches should be included.

About

ECS Oberon-2 Compiler Standard Library Work in progress

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published