Skip to content

Instantly share code, notes, and snippets.

@tenpoku1000
Created December 28, 2018 05:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenpoku1000/75869fb88ad84b6109ae0325aeed412f to your computer and use it in GitHub Desktop.
Save tenpoku1000/75869fb88ad84b6109ae0325aeed412f to your computer and use it in GitHub Desktop.
32 ビット整数式の x64 JIT コンパイラを試作する

32 ビット整数式の x64 JIT コンパイラを試作する

この記事は、自作OS Advent Calendar 2018の 12/24 の記事として書かれました。

昨年の自作OS Advent Calendar 2017で、以下のような記事を書きました。

自作派の人のためのコンパイラ関連規格のメモ
https://gist.github.com/tenpoku1000/9878188f4c8ecd1a5db1d16549f45fc9

今年は、実際に簡単なコンパイラを作ってみて、以下の電子書籍の 「第2章:32 ビット整数式の x64 JIT コンパイラを試作する」として文書化しました。

tenpoku1000/tenpoku-book: 電子書籍: x64 UEFI 対応 OS 自作入門
https://github.com/tenpoku1000/tenpoku-book

コンパイラのソースコードと実行可能ファイルは、以下のリポジトリからダウンロードできます。使い方は、README.md に書かれています。

tenpoku1000/int_calc_compiler: WebAssembly を中間言語に採用した、32 ビット整数式の x64 JIT コンパイラ
https://github.com/tenpoku1000/int_calc_compiler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment