2011-06-01から1ヶ月間の記事一覧

the notes of PE workshop#4

introduction i attended PE workshop#4. i implemented a something compiler but i couldn't finish it there.after coming home, i finished it and confirmed it works. so i'll introduce it.links the blog of the host. handout, togetter and so on.…

the notes of ZIP workshop 1-2

introduction this entry follows http://d.hatena.ne.jp/takahirox/20110605/1307259596 the blog of the host. you can get handout. http://d.hatena.ne.jp/n7shi/20110529 atnd http://atnd.org/events/14792 what i did i made a zip archive tool with…

UNIX 6th code reading - ディスクキャッシュの効率化

はじめに 前回のエントリでバッファの状態遷移図を描きました。それに関連して、ブロックバッファはディスクキャッシュとして効率化が図られているということをまとめます。 ディスクキャッシュの効率を高めるには B_DONEフラグが立っているとき、そのバッフ…

UNIX 6th code reading - バッファの状態遷移

はじめに 前回のエントリでバッファに関する説明を書きました。ソースを追っているだけではバッファの状態遷移の仕方がわかりづらかったので絵を描いてみました。 各フラグの説明 主要なものだけ簡単に。詳細はThe UNIX I/O Systemを読んでください。 B_READ…

Lions' Commentary on UNIX 読書会メモ#8 おさらい

はじめに Lions本読書会#8で詰まった箇所がありました。それを整理し、解説した動画を作ってみたので公開します。 説明動画 大きな流れ アドレス周りのおさらい estabur( ), sureg( )のおさらい xalloc( )のおさらい 訂正&補足 「メモリアドレスの話」の絵…

Lions’ Commentary on UNIX 読書会メモ#8

はじめに Lions本読書会#8に参加してきました。メモを残しておきます。今回は14章を読みました。 togetter 関連ツイートをtogetterでまとめました。 http://togetter.com/li/151577 今回詰まったポイント 今回一番ひっかかったポイントはxalloc( )の4457行目…

UNIX 6th code reading - バッファ

はじめに 今回は17章を読み解いていきます。17章はバッファ操作に関する内容が書かれています。15-17章はお互いに関連しているので繋がりを意識しながら読むと理解がしやすいと思います。 バッファの概要 バッファという機構を用いてブロックデバイスを操作…

the notes of ZIP workshop 1

introduction i attended a ZIP workshop. i'll make the notes of it and split it into several entries. the blog of the host. you can get handout. http://d.hatena.ne.jp/n7shi/20110529 atnd http://atnd.org/events/14792 what i did i made a zip …

UNIX 6th code reading - RKディスクドライバ

はじめに 今回は16章を見ていきます。PDP11で採用しているRKディスクのドライバを追います。なんとこのデバイスドライバは150行くらいで書かれています。 RKのレジスタ RKをコントロールするためのレジスタがあります。これらのレジスタに適切な値をセットす…