Giter Club home page Giter Club logo

cpuex-compiler's Introduction

* 外部関数の呼び出し規約
$i1, $f1: 返り値
$i2~, $f2~: 引数
$ra: リンクレジスタ
全てのレジスタを退避無しで使用可能

* 外部変数のデータ構造
配列aのi番目の要素はaのアドレス+iの位置に置く
タプル型の場合は、コンパイラが出力したデータ配置に従う
この際、外部変数の配列長はコンパイラが勝手に妄想するので、実際と異なる場合には-noExpandオプションを指定する

* コンパイルオプション
-inline 関数のインライン展開の上限サイズ指定(=0)
-inline_cont If文の継続のインライン展開の上限サイズ指定(=0)
-iter 最適化の反復回数指定(=100)
-noHoge 各種最適化をオフにする
	(Movelet, ConstArg, ConstFold, Cse, ConstArray, Inline, Assoc, BetaTuple, Beta,
	 ChangeArgs, Simm, Slabel, Sfl, Sglobal, Beta2, AbsNegFlag, PreSchedule, MoveAsm)
-lib ライブラリ作成用
	-noChangeArgs -noSfl -noSlabel
	使われていない関数の削除を行わない
	関数名にext_をつける
	ラベルが被らないようにする

cpuex-compiler's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.