タグ

2013年10月21日のブックマーク (4件)

  • Hello, JIT World: The Joy of Simple JITs

    This is a demonstration of how simple and enjoyable small JITs (just-in-time compilers) can be. The word “JIT” tends to invoke an image of deepest wizardry, something that only teams of the most hard-core compiler guys would ever dream of creating. It makes you think of the JVM or .NET, very large runtimes with hundreds of thousands of lines of code. You never see “Hello, World!” sized programs fo

  • コンパイラ(gccコマンド)の使い方

    gccはジーシーシーと読む.GNUが作成し,UNIX,Windowsなどで動作するフリー のコンパイラである. ここでは,C言語をコンパイルする際のgccの利用方法を説明するが,C++の場合 にはgccというところをg++に変更すればほぼそのまま利用可能である. イタリック体は,実行時には適当に変えること.ここでは,サンプルとし て,test.cをコンパイルしてtest.o(オブジェクトファイル)または test(実行ファイル)を作成する場合についての説明をする. 主なオプション一覧 -g   (コンパイル,リンク時) コンパイル,リンク時にDEBUG情報を付加する.dbx,gdbなどのデバッガ を使用するときに必要. -c   (コンパイル時) コンパイルのみ行う(オブジェクトファイルを生成する). ex: gcc -c test.c   → test.oを生成 -o test.o  (

  • Basic JIT

    Ever since I learned about Just In Time Compilation from the various Ruby VMs and JavaScript VMs, I’ve been inspired. I could tell you all about how just in time (JIT) compilation worked, and how it could give your interpreted language a speed boost. It was so cool. Well, it still is! There’s a ton of research going on around JIT compilation. But the problem for me is that I could never figure out

  • Java - ガーベジコレクション

    Javaの自動メモリー管理機能を指す言葉。スタックやヒープ、定数プール、メソッドの領域を確保する時にメモリーが消費される。ガーベジコレクションは、ヒープ上で処理される。ちなみにヒープはメモリー上に1つしか存在しない。 「実行中のJavaプログラムから到達不能になったオブジェクトは削除する。」このことが重要である。Javaプログラムは必要になったら作成し、不要になったら削除しとこのように次々繰り返す。この作業に必要不可欠なのが「ガーベジコレクタ」である。