1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Kuin on Linux/macOS

Last updated at Posted at 2020-02-02

Introduction

Kuin can be bootstraped and can output C++, so now it is possible to run Kuin on Linux/macOS.

Method

git clone https://github.com/kuina/KuinInKuin
cd KuinInKuin/build
# Build latest kuin.exe using bootstrap kuin
/Applications/EasyWine64.app/Contents/Resources/wine/bin/wine kuincl.exe -i $PWD/../src/compiler/main.kn -o $PWD/output/kuin.exe -s $PWD/sys -e cui
# Compile latest kuin using latest kuin.exe
/Applications/EasyWine64.app/Contents/Resources/wine/bin/wine output/kuin.exe -i $PWD/../src/compiler/main.kn -o $PWD/output/kuin_cpp -s $PWD/../src/sys/ -e cpp
# Compile C++
g++ -std=c++11 -O2 -o kuin output/kuin_cpp.cpp
# Build some file
./kuin -i src.kn -o $PWD/output -s $PWD/../src/sys/ -e cpp
g++ -std=c++11 -O2 output.cpp

Result

./a.out < ~/procon/icpc2007dA
504
473
518
638
507
538

Conclusion

We were able to generate kuin binary for Linux/macOS. Moreover, I was able to find some issues successfully. However as they say "it is beta", it might be still difficult to adopt this to yukicoder or atcoder...

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?