/Develop/Projects/Vcc/

k1.spdns.de / Develop / Projects / Vcc /

Kio's Virtual Instruction Compiler.

intro | invocation | preprocessor | types | functions | operators | instructions  

compiler | memory  

Invocation

Compile sourcefile and execute it; optionally with compiler options and program arguments:

vicci <options> <sourcefile> <arguments>

Compile sourcefile:

vcc <options> <sourcefile>

Execute compiled file executablefile, optionally with arguments;
executablefile must be in search path:

<executablefile> <arguments>        

Compile and execute sourcefile, optionally with arguments;
sourcefile must be in search path and start with "#!/usr/bin/vicci":

<sourcefile> <arguments>        

Options:

command:
-h              show help
-i show system info
-p preprocess only
-c preprocess & compile --> linkfile.vl
-m preprocess, compile & make --> prog.vx or lib.vll
-x preprocess, compile, make & execute

The 'c' option is default when called as 'vcc' while the 'x' option is default for 'vicci'.

general:
-v                verbose
-T<dirpath> set temp base dir
-O<dirpath> set list output dir

"/tmp/" is the default temp dir.
The default list dir is "log/" in the primary sourcefile's directory.

compile:
-cpu=<name>       i386x64,i386,ppc,vcc,k1mc,k1
-o0|1|2|s optimize no|std|max|size
-D<name>[=<text>] define preprocessor constant
-I<dirpath> add header search path

Default header seach path will be "/usr/lib/vcc/h/" somewhere in the future.
Directories "headers/" and "h/" in the primary sourcefile's directory are also automatically searched.

link:
-L<dirpath>       add library search path
-o=<filename> set output file

Default library seach path will be "/usr/lib/vcc/" somewhere in the future.
The include paths are also searched.

An output file is normally not created except if an output filename is expressively set.
All compiled files are kept in the temp folder and are recompiled if the source files were modified.

You can start your program with it's source, just like a script! Vicci checks whether it has a file cached which is uptodate in all respects and uses this or compiles it on the fly.

Archive

Name Letzte Änderung Länge 
lib-Z80-Rop/ 2020-11-30 15:50 21 
lib-Z80-Vss/ 2017-11-12 09:55 452 
lib/ 2019-10-30 17:02
Libraries/ 2019-10-30 17:11
OSX-Qt40/ 2019-10-30 17:02
OSX/ 2020-09-05 12:54
Source/ 2019-10-30 17:02 11 
Tests/ 2019-10-30 17:02
LICENSE 2019-10-30 17:25 1323 
README.md 2019-10-30 17:25 288 
TODO.txt 2020-10-18 12:42 340 
macspin.gif

powered by vipsi - your friendly VIP Script Interpreter

Valid HTML Valid CSS