実行OS環境
CentOS Linux release 8 (Core)
ただし clangは
Ubuntu 18.04.3 LTS (Bionic Beaver)
実行コマンド
言語 | バージョン | 言語ID | コンパイルコマンド | 実行コマンド |
---|---|---|---|---|
C++14 | gcc 11.2.0 + boost 1.78.0 | cpp14 | g++7 -I /boost_git/ -O2 -lm -std=c++14 -Wuninitialized -o a.out _filename_ | ./a.out |
C++17 | gcc 11.2.0 + boost 1.78.0 | cpp17 | g++7 -I /boost_git/ -O2 -lm -Wuninitialized -o a.out _filename_ | ./a.out |
C++17(clang Beta) * | clang 10.0.0 + boost 1.78.0 | cpp-clang | clang++ -I /boost_git/ -O2 -lm -std=c++1z -Wuninitialized -o a.out _filename_ | ./a.out |
C++23(draft) | gcc 11.2.0 + boost 1.78.0 | cpp23 | g++7 -I /boost_git/ -O2 -lm -std=c++23 -Wuninitialized -o a.out _filename_ | ./a.out |
C++11 | gcc 8.5.0 | cpp | g++ -O2 -lm -std=gnu++11 -Wuninitialized -o a.out _filename_ | ./a.out |
C | gcc 11.2.0 | c11 | gcc7 -O2 -lm -std=c11 -o a.out _filename_ | ./a.out |
C90 | gcc 8.5.0 | c | gcc -O2 -lm -o a.out _filename_ | ./a.out |
Java17 | openjdk 17.0.1 | java8 | javac -encoding UTF8 _filename_ | /usr/bin/java -ea -Xmx700m -Xss256M _class_ |
C# | csc 3.9.0 | csharp | csc -langversion:latest -warn:0 -o+ /r:System.Numerics.dll _filename_ -out:a.exe | /usr/bin/mono a.exe |
C#(mono) | mono 6.12.0.158 | csharp_mono | mcs -warn:0 -o+ /r:System.Numerics.dll _filename_ -out:a.exe | /usr/bin/mono a.exe |
C#(.NET 6 Beta) | .NET 6.12.0 | csharp_dotnet | /usr/bin/dotnet_c | ./bin/Release/net6.0/main |
Perl | 5.26.3 | perl | /usr/bin/perl -cw _filename_ | /usr/bin/perl -X _filename_ |
Raku | rakudo v2021.12-89-g196969167 | raku | /usr/bin/perl6 -c _filename_ | /usr/bin/perl6 _filename_ |
PHP | 7.2.24 | php | php -l _filename_ | /usr/bin/php _filename_ |
PHP8 | 8.1.3 | php7 | php7 -l _filename_ | /usr/bin/php7 _filename_ |
Python2 | 2.7.18 | python | python2x -m py_compile _filename_ | /usr/bin/python2x Main.pyc |
Python3 | 3.10.1 + numpy 1.22.3 + scipy 1.8.0 | python3 | /usr/local/bin/python3 -mpy_compile _filename_ | /usr/local/bin/python3 _filename_ |
PyPy2 | 7.3.8 | pypy2 | pypy2 -m py_compile _filename_ | /usr/bin/pypy2 Main.pyc |
PyPy3 | 7.3.8 | pypy3 | pypy3 -mpy_compile _filename_ | /usr/bin/pypy3 _filename_ |
Ruby | 3.1.1p18 | ruby | /usr/bin/ruby -w -c _filename_ | /usr/bin/ruby _filename_ |
D | dmd 2.099.1 | d | dmd -m64 -w -wi -O -release -inline -I/opt/d/src/druntime/import/ -I/opt/d/src/phobos -L-L/opt/d/linux/lib64/ _filename_ | ./Main |
Go | 1.18 | go | env GOCACHE=/tmp go build _filename_ | ./Main |
Go1.4 | 1.4.2 | go1.4 | env GOROOT=/usr/local/go1.4 go1.4 build _filename_ | ./Main |
Haskell | 9.2.2 | haskell | ghc -rtsopts -with-rtsopts=-K1G -o a.out -O2 _filename_ | ./a.out |
Scala(Beta) | 3.1.1 | scala | scalac _filename_ | scala _class_ |
Nim | 1.6.4 | nim | nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_ | ./a.out |
Rust | 1.59.0 | rust | rustc --edition 2018 -O Main.rs -o Main | ./Main |
Kotlin | 1.6.10 | kotlin | kotlinc _filename_ -include-runtime -d main.jar | kotlin main.jar |
Scheme | Gauche-0.9.11-p1 | scheme | true | /usr/bin/gosh _filename_ |
Crystal | 1.3.2 | crystal | crystal build -o a.out --release --no-debug _filename_ | ./a.out |
Swift | 5.4.2 | swift | /usr/bin/swiftc _filename_ -Ounchecked -o a.out | ./a.out |
OCaml | 4.13.1 | ocaml | ocamlfind ocamlopt -o a.out -linkpkg -package zarith,str _filename_ -o a.out | ./a.out |
Clojure(Beta) | 1.10.2.790 | clojure | true | clojure -M _filename_ |
F# | 5.0 | fsharp | fsharpc _filename_ --out:a.exe | /usr/bin/mono ./a.exe |
Elixir | 1.7.4 | elixir | elixirc _filename_ | /usr/local/bin/elixir -e Main.main |
Lua | LuaJit 2.0.5 | lua | luajit -b _filename_ a.out | /usr/bin/luajit _filename_ |
Julia | 1.4.2 | julia | true | julia _filename_ |
Fortran | gFortran 8.4.1 | fortran | gfortran _filename_ -O2 -o ./a.out | ./a.out |
JavaScript | node v17.7.1 | node | true | /usr/bin/node _filename_ |
TypeScript | 4.6.2 | typescript | /usr/bin/tsc.sh -p tsconfig.json | /usr/bin/node main.js |
Common Lisp | sbcl 2.1.6 | lisp | sbclc _filename_ | /usr/local/bin/sbcl --script Main.fasl |
Standard ML | MLton 20180207-6 | sml | mlton _filename_ | ./main |
Kuin | KuinC++ v.2021.9.17 | kuin | KuinInKuin -i _filename_ -o out.cpp -s /KuinInKuin/src/sys/ -e cpp -r -q | ./a.out |
Kuin exe(beta) | v.2021.9.17 on Wine | kuinexe | kuinc /kuin/kuincl.exe -i _filename_ -o out.exe -s /kuin/sys/ -e exe -r -q | kuin out.exe |
Vim script | v8.2 | vim | true | /usr/bin/vim -u NONE -i NONE -X -N -n -e -s -S _filename_ /dev/stdin -c qa! |
Bash | Bash 4.4.19 | sh | true | /usr/bin/sh _filename_ |
Assembler | nasm 2.15.03 | nasm | nasmc Main | ./a.out |
cLay | 20220312-1 | clay | clayc _filename_ | ./a.out |
Brainfuck | BFI 1.1 | bf | true | /usr/bin/bf _filename_ |
Whitespace | 0.3 | Whitespace | true | /usr/bin/wspace _filename_ |
Text | cat 8.3 | text | true | /usr/bin/cat _filename_ |
(clangについてはいずれは対応したい。)
諸事情により,
nasmcは,
nasm -f elf64 -Werror $1.asm && ld -s -o a.out $1.o
sbclcは,
sbcl --eval "(compile-file \"${1}\")" --quit
kuincは
kuincl.exe -i $1 -o out.exe -e cui -r -q
brainfuckは http://esoteric.sange.fi/brainfuck/impl/interp/BFI.cの処理系を使用。
cLayについてはこちら
yukicoderではGCC8.3.1(C++14)でビルド、実行しています
.NET 5.0は下のものと同等です。
echo '<Project Sdk="Microsoft.NET.Sdk"><PropertyGroup><OutputType>Exe</OutputType><TargetFramework>net5.0</TargetFramework><LangVersion>latest</LangVersion></PropertyGroup></Project>' > main.csproj; dotnet publish -c Release -r centos.8-x64 -o output
入れて欲しいコンパイラがありましたら、ご連絡ください。(CentOS 7で動作するもの)
もしくはDockerfileを頂ければスムーズかもしれません。
/proc/cpuinfo
(今後、予告なく変更する可能性があります、あくまでも2020年08月04日現在のものです。)
コアが複数あっても、ジャッジのコアは1つに制限しています。
processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 63 model name : Intel(R) Xeon(R) CPU @ 2.30GHz stepping : 0 microcode : 0x1 cpu MHz : 2299.998 cache size : 46080 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt arat md_clear arch_capabilities bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs bogomips : 4599.99 clflush size : 64 cache_alignment : 64 address sizes : 46 bits physical, 48 bits virtual power management:
各コンパイラバージョン
万が一、上の記述と異なるものがある場合は下のコマンドが最新です。
+ g++ --version g++ (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + gcc --version gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++7 (GCC) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + g++7 --version + java -version openjdk version "17.0.1" 2021-10-19 OpenJDK Runtime Environment 21.9 (build 17.0.1+12) OpenJDK 64-Bit Server VM 21.9 (build 17.0.1+12, mixed mode, sharing) + csc -version + head -n2 3.9.0-6.21124.20 (db94f4cc) + mono --version + head -n2 Mono JIT compiler version 6.12.0.158 (tarball Thu Oct 7 17:35:58 UTC 2021) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com + mcs --version + head -n2 Mono C# compiler version 6.12.0.158 + perl -version + head -n2 This is perl 5, version 26, subversion 3 (v5.26.3) built for x86_64-linux-thread-multi + perl6 -version Welcome to Rakudo™ v2022.02-110-g377564339. Implementing the Raku® Programming Language v6.d. Built on MoarVM version 2022.02-38-g588e00d60. + php --version PHP 7.2.24 (cli) (built: Oct 22 2019 08:28:36) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies + php7 --version PHP 8.1.3 (cli) (built: Mar 17 2022 17:16:44) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.3, Copyright (c) Zend Technologies + python2x --version Python 2.7.18 + python3 --version Python 3.10.1 + cat + python3 ver.py numpy: 1.22.3 scipy: 1.8.0 + pypy2 --version Python 2.7.18 (6862351a1edb17bf92c05d0f2c573ca7f9b40726, Feb 18 2022, 13:29:02) [PyPy 7.3.8 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] + pypy3 --version Python 3.9.10 (8276b505180f70c5784a698a510f0a17317a85c3, Feb 19 2022, 16:50:47) [PyPy 7.3.8 with GCC 10.2.1 20210130 (Red Hat 10.2.1-11)] + ruby --version ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-linux] + dmd --version DMD64 D Compiler v2.099.0 Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved written by Walter Bright + go version go version go1.18 linux/amd64 + go1.4 version go version go1.4.2 linux/amd64 + ghc --version The Glorious Glasgow Haskell Compilation System, version 9.2.2 + scalac -version Scala compiler version 3.1.1 -- Copyright 2002-2022, LAMP/EPFL + nim --version + head -n2 Nim Compiler Version 1.6.4 [Linux: amd64] Compiled at 2022-03-17 + rustc --version rustc 1.59.0 (9d1b2106e 2022-02-23) + kotlinc -version info: kotlinc-jvm 1.6.0 (JRE 17.0.1+12) + gosh -V Gauche scheme shell, version 0.9.11-p1 [utf-8,pthreads], x86_64-pc-linux-gnu (version "0.9.11-p1") (command "gosh") (scheme.id gauche) (languages scheme r5rs r7rs) (encodings utf-8) (website "https://practical-scheme.net/gauche") (build.platform "x86_64-pc-linux-gnu") (build.configure "--prefix=/gauche" "--enable-multibyte=utf-8") (scheme.path "/gauche/share/gauche-0.98/site/lib" "/gauche/share/gauche-0.98/0.9.11-p1/lib") (gauche.threads pthreads) (gauche.net.tls axtls) + crystal -v Crystal 1.3.2 [932f193ae] (2022-01-18) LLVM: 10.0.0 Default target: x86_64-unknown-linux-gnu + ocamlfind ocamlopt -version 4.13.1 + fsharpc --help + head -n2 Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. + luajit -v LuaJIT 2.0.5 -- Copyright (C) 2005-2022 Mike Pall. https://luajit.org/ + gfortran --version + head -n2 GNU Fortran (GCC) 8.5.0 20210514 (Red Hat 8.5.0-10) Copyright (C) 2018 Free Software Foundation, Inc. + node --version v17.7.1 + /node-x64/bin/tsc --version Version 4.6.2 + swift --version Swift version 5.4.2 (swift-5.4.2-RELEASE) Target: x86_64-unknown-linux-gnu + sbcl --version SBCL 2.1.6 + vim --version + head -n2 VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar 17 2022 16:06:19) 適用済パッチ: 1-4039 GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu) Copyright (C) 2016 Free Software Foundation, Inc. cat (GNU coreutils) 8.30 Copyright (C) 2018 Free Software Foundation, Inc. + bash --version + head -n2 + cat --version + head -n2 + elixir -v Erlang/OTP 24 [erts-12.3] [source] [64-bit] [smp:1:1] [ds:1:1:10] [async-threads:1] [jit] Elixir 1.13.3 (compiled with Erlang/OTP 22) + /KuinInKuin/build/kuin -v Kuin Programming Language v.2021.9.17 (C)Kuina-chan + nasm -v NASM version 2.15.03 compiled on Nov 16 2020 + sed -n 9p + echo '' + clay // cLay version 20220312-1 + wspace + head -n2 wspace 0.3 (c) 2003 Edwin Brady ------------------------------- + clang++ --version clang version 13.0.0 (https://github.com/apple/llvm-project.git 900c3b6b832d1d0e7d6e1220f6ba001802cbe0cc) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/bin