Browse Source

More go fiddlings

dev/git-series/gccdum
Matt Godbolt 8 years ago
parent
commit
1bc2be212b
  1. 2
      etc/config/builtin.amazon-go.properties
  2. 2
      etc/config/builtin.go.properties
  3. 3
      etc/config/gcc-explorer.go.properties
  4. 8
      etc/config/gcc-explorer.lud-ldnmg01.properties
  5. 7
      examples/go/max_array.go

2
etc/config/builtin.amazon-go.properties

@ -0,0 +1,2 @@
sourcepath=./examples/go/
extensionRe=.*\.go$

2
etc/config/builtin.go.properties

@ -0,0 +1,2 @@
sourcepath=./examples/go/
extensionRe=.*\.go$

3
etc/config/gcc-explorer.go.properties

@ -0,0 +1,3 @@
port=10243
compileFilename=example.go
language=go

8
etc/config/gcc-explorer.lud-ldnmg01.properties

@ -2,10 +2,10 @@
#port=10240
compileTimeoutMs=5000
defaultCompiler=g46
compilers=g44:g45:g46:clang34
#compilers=go
#language=go
#compileFilename=file.go
#compilers=g44:g45:g46:clang34
compilers=go
language=go
compileFilename=file.go
compiler.go.exe=/usr/bin/gccgo
compiler.go.name=GCC go
compiler.g44.exe=/usr/bin/g++-4.4

7
examples/go/max_array.go

@ -0,0 +1,7 @@
package main;
func MaxArray(x []float64, y []float64) {
for i, c := range x {
if y[i] > c { x[i] = y[i] }
}
}
Loading…
Cancel
Save