Vishap Oberon Compiler http://oberon.vishap.am
Find a file
2015-03-11 20:26:05 +04:00
src updated OPV Convert to support 64bit type. -- noch 2015-03-11 20:26:05 +04:00
05vishap.conf changed branding of git version to 1.1 2015-01-29 11:57:57 +04:00
CHANGES.md updated changelog 2014-09-19 00:49:41 +04:00
CHANGES0.md updated changelog - CHANGES file. 2014-09-18 19:05:40 +04:00
COMPILE modified COMPILE, added dependencies. -- noch 2015-02-09 21:46:33 +04:00
FAQ.md updated changelog, updated FAQ on how to solve Raspberry Pi building errors. 2014-09-18 18:48:35 +04:00
gen_changelog.sh improved changelog generation script to fix the email address to possibly prevent spambots to identify an email address. 2014-09-18 19:14:06 +04:00
hints changed branding of git version to 1.1 2015-01-29 11:57:57 +04:00
LICENSE Initial commit 2013-09-27 08:55:16 -07:00
makefile ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.darwin.clang.x86_64 ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.freebsd.clang.x86_64 freebsd makefile updated with -F flag to force create symbol files -- noch 2015-02-13 11:41:25 +00:00
makefile.linux.clang.powerpc ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.linux.clang.x86_64 ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.linux.gcc.armv6j_hardfp ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.linux.gcc.powerpc ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.linux.gcc.x86 ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
makefile.linux.gcc.x86_64 ported ethDates, ethReals, ethStrings. -- noch 2015-02-12 20:21:39 +04:00
quick_start voc compiler first commit 2013-09-27 22:34:17 +04:00
README.md spec file fixes on pidora (fc20 on raspberry pi) 2014-09-14 21:30:59 +04:00
voc.REMOVED.git-id updated OPV Convert to support 64bit type. -- noch 2015-03-11 20:26:05 +04:00
voc.spec changed branding of git version to 1.1 2015-01-29 11:57:57 +04:00
vocstatic.darwin.clang.x86_64.REMOVED.git-id darwin bootstrap binary 2014-04-14 06:01:11 +08:00
vocstatic.freebsd.clang.x86_64.REMOVED.git-id fixed makefile ld.so.conf.d for freebsd. -- noch 2015-02-13 11:31:35 +00:00
vocstatic.linux.clang.powerpc.REMOVED.git-id small changes in OPC and OPM, updated powerpc bootstrap binaries. -- noch 2015-02-02 21:14:50 +04:00
vocstatic.linux.clang.x86_64.REMOVED.git-id unufied makefiles 2015-02-10 18:06:41 +04:00
vocstatic.linux.gcc.armv6j_hardfp.REMOVED.git-id Revert "new system types tested on x86 and armv6, bootstrap binaries updated. --" 2015-03-10 19:31:57 +04:00
vocstatic.linux.gcc.powerpc.REMOVED.git-id small changes in OPC and OPM, updated powerpc bootstrap binaries. -- noch 2015-02-02 21:14:50 +04:00
vocstatic.linux.gcc.x86.REMOVED.git-id Revert "new system types tested on x86 and armv6, bootstrap binaries updated. --" 2015-03-10 19:31:57 +04:00
vocstatic.linux.gcc.x86_64.REMOVED.git-id updated OPV Convert to support 64bit type. -- noch 2015-03-11 20:26:05 +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
    assuming you in voc directory

cd .. tar -jcvpf voc-1.0.src.tar.bz2 voc

  • put them to ~/rpmbuild/SOURCES (on some systems as root to /usr/src/redhat/SOURCES/) or other similar location.

mkdir -p ~/rpmbuild/SOURCES
cp voc-1.0.src.tar.bz2 ~/rpmbuild/SOURCES

  • cd to voc directory and run

rpmbuild -ba voc.spec

this should create voc rpm installers.