2015-07-12から1日間の記事一覧

コンパイラ

コンパイラの構造を読んで、自分なりにメモ コンパイラは何をするか 人間が書いたコードを機械が使うコードに翻訳する 内訳は 字句解析→構文解析→中間コード生成→最適化→コード生成 それをしながら: プログラムの情報記帳をし エラーハンドリングをしてくれ…

ぱらぱらめくる『C++ for statisticians, with a focus on interfaci

ぱらぱらめくる『C++ for statisticians, with a focus on interfacing from R and R packages』 基礎知識 資料はこちら 中身のあるC++ファイル"test.cpp"が以下の通り。 // this is test.cpp #include <iostream> #include <iomanip> #include <vector> #include <math.h> #include <time.h> #include <R.h> </r.h></time.h></math.h></vector></iomanip></iostream>…