| 1 | [[PageOutline]] |
| 2 | |
| 3 | = C/C++ = |
| 4 | * [http://d.hatena.ne.jp/yohei-a/20101110/1289410003 ファイルがページキャッシュに乗っているかどうかを調べる - ablog] |
| 5 | * [http://www.pushaa.jp/~hizuki/soft/wiki.cgi?cygwin%A4%C7Windows%A5%A2%A5%D7%A5%EA%A4%F2%BA%EE%A4%EB%A4%BF%A4%E1%A4%CE%A5%E1%A5%E2 cygwinでWindowsアプリを作るためのメモ - cygwinを使って、] |
| 6 | * [http://research.preferred.jp/2010/12/wat-array/ wat-array : wavelet木を利用した高速配列処理ライブラリ : Preferred Research Blog] |
| 7 | * via twitter:iwiwi/status/15788763305222144 |
| 8 | * [http://d.hatena.ne.jp/bsdhouse/20090720/1248085754 そろそろvolatileについて一言いっておくか - yamasaのネタ帳] |
| 9 | * via twitter:Flast_RO/status/16853894420238336 |
| 10 | * [http://funini.com/kei/mmap/ mmap (メモリマップトファイル) : kei@sodan] |
| 11 | * via twitter:nooyosh/status/36771691048730624 |
| 12 | * [http://ufcpp.net/study/csharp/sp2_microthread.html (サンプル) イテレータとマイクロスレッド (C# によるプログラミング入門)] |
| 13 | * [http://yasu2.prosou.nu/blog/2010/01/mmap-howto.html mmap() HOWTO - Debuggin' Everyday] |
| 14 | * [http://blog-ja.intransient.info/2011/05/c-13.html Success is a Journey, not a Destination: 全てのCプログラマが未定義な振る舞いについて知っておくべきこと #1/3] |
| 15 | * [http://code.google.com/p/address-sanitizer/ address-sanitizer - AddressSanitizer: a fast memory error detector - Google Project Hosting] |
| 16 | * [http://blog.bitmeister.jp/?p=365 TAPデバイスでIPv6パケットキャプチャ] |
| 17 | * [http://stackoverflow.com/questions/15393838/how-do-i-unpack-and-extract-data-properly-using-msgpack-c serialization - How do I unpack and extract data properly using msgpack-c? - Stack Overflow] |
| 18 | * [http://stackoverflow.com/questions/12431441/messagepack-c-api/12581029 msgpack - MessagePack C API - Stack Overflow] |
| 19 | |
| 20 | == build 32bit object on x64 == |
| 21 | * [http://ankyo.blog.so-net.ne.jp/2010-06-19 【Ubuntu】 Ubuntu 64bit版 で 32bitのライブラリやアプリをコンパイルする環境設定(覚書):なんでもかんでもコンピュータ:So-netブログ] |
| 22 | {{{ |
| 23 | sudo apt-get install ia32-libs lib32gcc1 lib32stdc++6 libc6-dev-i386 gcc-multilib |
| 24 | gcc -m32 -o hello32 hello.c |
| 25 | }}} |
| 26 | |
| 27 | = Fail Safe C = |
| 28 | * [http://staff.aist.go.jp/y.oiwa/FailSafeC/ Fail-Safe C: Top Page] |
| 29 | |
| 30 | * Ubuntu 12.04 LTS x86_64 |
| 31 | * mitty@precise:~$ sudo aptitude install ocaml-nox ocaml-native-compilers ocaml-findlib libextlib-ocaml-dev camlp4 libgc-dev libgdbm-dev |
| 32 | {{{ |
| 33 | The following NEW packages will be installed: |
| 34 | camlp4 ledit{a} libextlib-ocaml{a} libextlib-ocaml-dev |
| 35 | libfindlib-ocaml{a} libfindlib-ocaml-dev{a} libgc-dev libgc1c2{a} |
| 36 | libgdbm-dev ocaml-base-nox{a} ocaml-findlib ocaml-interp{a} |
| 37 | ocaml-native-compilers ocaml-nox |
| 38 | 0 packages upgraded, 14 newly installed, 0 to remove and 0 not upgraded. |
| 39 | Need to get 31.6 MB of archives. After unpacking 106 MB will be used. |
| 40 | }}} |
| 41 | * mitty@precise:~$ svn co https://svn.rcis.jp/FailSafeC/pub/trunk FailSafeC-trunk |
| 42 | {{{ |
| 43 | Checked out revision 2255. |
| 44 | }}} |
| 45 | |
| 46 | == fix version getter script == |
| 47 | * mitty@precise:~/FailSafeC-trunk$ vim tools/disthelpers/svn-get-revision.pl |
| 48 | {{{#!diff |
| 49 | Index: tools/disthelpers/svn-get-revision.pl |
| 50 | =================================================================== |
| 51 | --- tools/disthelpers/svn-get-revision.pl (revision 2255) |
| 52 | +++ tools/disthelpers/svn-get-revision.pl (working copy) |
| 53 | @@ -9,7 +9,7 @@ |
| 54 | while (<F>) { |
| 55 | # 123456 1234567890 12345678 123456789012 |
| 56 | # A + - 1723 yutaka local-packaging/debian-dir |
| 57 | - /(^[AMDR\+ \?]{6}) ([ \-\d]{10}) ([ \-\d\?]{8}) .{12} (..*)$/ or die "cannot parse svn output: \"$_\"\n "; |
| 58 | + /(^[AMDR\+ \?]{7}) ([ \-\d]{10}) ([ \-\d\?]{8}) .{12} (..*)$/ or die "cannot parse svn output: \"$_\"\n "; |
| 59 | $fname = $4; |
| 60 | $frev = $3 + 0; |
| 61 | # print $_; |
| 62 | }}} |
| 63 | * mitty@precise:~/FailSafeC-trunk$ ./tools/disthelpers/svn-get-revision.pl |
| 64 | {{{ |
| 65 | 2255+20120602T162127Z |
| 66 | }}} |
| 67 | |
| 68 | * mitty@precise:~/FailSafeC-trunk$ ./configure |
| 69 | * mitty@precise:~/FailSafeC-trunk$ make |
| 70 | * mitty@precise:~/FailSafeC-trunk$ sudo make install |