Vishap Oberon Compiler http://oberon.vishap.am
Find a file
Norayr Chilingarian c8cc104507 fixed or sources
2014-09-13 18:27:48 +04:00
src fixed or sources 2014-09-13 18:27:48 +04:00
05vishap.conf raspberry pi bootstrap binary 2014-04-14 02:20:31 +04:00
CHANGES prefixed installation now works. 2014-03-20 21:11:03 +04:00
COMPILE gnuc -> gcc, more abstraction in makefiles and extTools 2014-04-13 14:15:48 +04:00
FAQ ulmEvents.Mod does not use C/asm code anymore. getaddr code procedure is 2013-10-10 19:16:50 +04:00
hints gnuc -> gcc, more abstraction in makefiles and extTools 2014-04-13 14:15:48 +04:00
LICENSE Initial commit 2013-09-27 08:55:16 -07:00
makefile fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.darwin.clang.x86_64 fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.freebsd.clang.x86_64 freebsd fix for ldconfig 2014-05-20 01:02:52 +04:00
makefile.linux.clang.powerpc fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.clang.x86_64 fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.gcc.armv6j fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.gcc.armv6j_hardfp fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.gcc.armv7a_hardfp fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.gcc.powerpc fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.gcc.x86 fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
makefile.linux.gcc.x86_64 fixed stage0 in all makefiles 2014-05-07 21:19:57 +04:00
quick_start voc compiler first commit 2013-09-27 22:34:17 +04:00
README.md updated README.md with info how to build rpm from provided spec file. 2014-09-11 15:57:22 +04:00
voc added crlf handling partly following discussion at 2014-09-11 15:46:09 +04:00
voc.spec changes to the spec file to compile on x86_64, x86, armv6hj_hardfp, 2014-09-11 13:25:21 +04:00
vocstatic.darwin.clang.x86_64 darwin bootstrap binary 2014-04-14 06:01:11 +08:00
vocstatic.freebsd.clang.x86_64 freebsd port works. 2014-05-20 00:56:33 +04:00
vocstatic.linux.clang.powerpc x86_64 and powerpc bootstrap binaries update 2014-04-14 02:23:52 +04:00
vocstatic.linux.clang.x86_64 0. fixed OPM.Mark bug, now when pos = -1 it shows error correctly. 2014-05-07 20:09:30 +04:00
vocstatic.linux.gcc.armv6j_hardfp raspberry pi bootstrap binary 2014-04-14 02:20:31 +04:00
vocstatic.linux.gcc.powerpc green output, powerpc binaries 2014-04-14 01:57:06 +04:00
vocstatic.linux.gcc.x86 0. fixed OPM.Mark bug, now when pos = -1 it shows error correctly. 2014-05-07 20:09:30 +04:00
vocstatic.linux.gcc.x86_64 added crlf handling partly following discussion at 2014-09-11 15:46:09 +04:00

vishap oberon compiler

How to install

just cd into source directory and type

make -f makefile.linux.gcc.x86_64

if you are on linux x86_64 system and you want voc to use gcc as backend.

otherwise use corresponding makefile.

then type

sudo make install

  • or see COMPILE file.

How to use

Type voc and it'll show you help.

voc -M will compile your module and link it statically to libVishapOberon. voc -m will link the module dynamically.

If you have more than one module, and you want them to be compiled into elf filethen: Let's assume we have module M0 which imports M1;

voc -l M1.Mod -s M0.Mod -M

Here -l is a global option. Module M1 will be compiled with -s option, i. e. sym file will be generated.

Module M0 will be compiled and linked statically.

In case you have modules in different directories, like "ui", "logic", "math", then you need to export MODULES environment variable like this:

export MODULES=".:ui:logic:math"

and after call voc

voc -s ui0.Mod

Otherwise you can use full path:

voc -s ui/ui0.Mod

build rpm

if you'd like to build an rpm installer, then

  • compress sources as voc-1.0.src.tar.bz2
  • put them to /usr/src/redhat/SOURCES/ (or other similar location)
  • run "rpmbuild -ba voc.spec

this should create voc rpm installers.