Pages

Tuesday, September 14, 2010

Batch file to compile go program with express go compiler

Download  Express go compiler from http://www.unicorn-enterprises.com and copy ng folder to c:\. Save the code below to ng.bat file

@echo off
c:\ng\bin\vmgc.exe -I c:\ng\pkg -o out.vmo %1
IF EXIST out.vmo c:\ng\bin\vmld.exe -L c:\ng\pkg -o out.vmx out.vmo
IF EXIST out.vmx c:\ng\bin\vmrun.exe out.vmx %2 %3 %4
IF EXIST out.vmx del out.vmx
IF EXIST out.vmo del out.vmo

move  ng.bat to c:\windows

now from command prompt you can run your go file by calling

c:\>ng hello.go

0 comments:

Post a Comment

 
Powered by NishantSoft