Skip to content

Instantly share code, notes, and snippets.

@tangentstorm
Created May 19, 2014 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tangentstorm/e74db33ce2d3f46a268e to your computer and use it in GitHub Desktop.
Save tangentstorm/e74db33ce2d3f46a268e to your computer and use it in GitHub Desktop.
$ voc -M hello.Mod
GNU x86_64 target
not using voc.par file
hello.Mod translating hello main program 277
hello.c:11:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
export main(int argc, char **argv)
^~~~
1 warning generated.
clang hello.c -static -o hello -fPIC -g -I /opt/voc-1.0/src/lib/system/freebsd/clang/x86_64 -I /opt/voc-1.0/lib/voc/obj -lVishapOberon -L. -L/opt/voc-1.0/lib
hello.c:11:8: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
export main(int argc, char **argv)
^~~~
1 warning generated.
MODULE hello;
IMPORT Out := Console;
BEGIN Out.String("hello world"); Out.Ln;
END hello.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment