Skip to content

Instantly share code, notes, and snippets.

@0atman
Last active May 18, 2020 14:19
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 0atman/276b732574e9bc38f8d8e6243eca9f95 to your computer and use it in GitHub Desktop.
Save 0atman/276b732574e9bc38f8d8e6243eca9f95 to your computer and use it in GitHub Desktop.
$ cat hello.nim
echo "hello world"
$ nim c -d:mingw hello.nim
Hint: used config file '/home/oatman/.choosenim/toolchains/nim-1.2.0/config/nim.cfg' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: hello [Processing]
Hint: [Link]
Hint: 14211 LOC; 0.144 sec; 16MiB peakmem; Debug build; proj: /home/oatman/projects/hello.nim; out: /home/oatman/projects/hello.exe [SuccessX]
$ ls -al hello.exe
-rwxrwxr-x 1 oatman oatman 397K May 18 15:15 hello.exe*
$ wine hello.exe
hello world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment