2018-09-01から1ヶ月間の記事一覧
この記事は何ですか 日記です 興味を持った コンパイラを作る講習会があったらしく*1, 興味を持ったので自分でもコンパイラを書いてみた. どんなコンパイラ コンパイラから出力されるアセンブリは whitespace*2. CやらjavascriptやらRubyやらが混合した感…
何度も調べているので,もう自分でまとめた. 参考資料 http://www.yunabe.jp/docs/cpp_virtual_destructor.html virtual に関する実験 #include "bits/stdc++.h" using namespace std; struct A{ int x; A(int _x = 1):x(_x){ cout << "construct A : " << …