Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

高速化 #4

Open
White-Green opened this issue Dec 18, 2021 · 1 comment
Open

高速化 #4

White-Green opened this issue Dec 18, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@White-Green
Copy link
Owner

現状は、再帰フィボナッチとかするとPythonよりだいぶ遅くなる(簡単なプログラムだとkirlのほうが速い場合もあるので得手不得手)
HIRレベルでの最適化と、LIR~VMレベルでの最適化が必要

@White-Green White-Green added the enhancement New feature or request label Dec 18, 2021
@White-Green
Copy link
Owner Author

HIRレベルでは、

  • 変数の削減
    • 使わなくなる変数を開放して同じ場所に別の値を置くようにコンパイルするとか?
  • その他比較的高レベルな最適化(定数の畳み込みとか?)

LIR~VMレベルでは、

  • 比較的低レベルな最適化(アセンブリ言語対象ぐらいのやつ)
  • そもそもLIR以下を全部JITコンパイルするように書き直す
    • wasm(ライブラリがクロスプラットフォームになって嬉しい)か、LLVM(HIRがLLVM IRを参考にしてるので実装が楽かも)のどっちかで検討中

あたり

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant