dot.emacs の設定

新しいの ;;-------------------------------------------------- ;; Load Path ;;-------------------------------------------------- ;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. …

StoreBuffer(仮)

StoreBuffer とりあえずコンパイル通った版。 #include <stdio.h> #include <string.h> #include "type.h" #include "util.h" #include "Dmac.h" #include "StoreBuffer.h" #define MAX_STORE_BUFFER_NUM 4 #define MAX_LINE_NUM 32 #define MIN_LINE_SIZE 16 typedef struct ST</string.h></stdio.h>…

既にある自分の Cygwin 環境で gnupack の emacs だけ使ってみたい

うちの環境は 64bit Windows 10 で Cygwin 64bit 版を利用している。 emacs は Cygwin に入っていたのをターミナルで使っていたが、最近そぞろに GUI 版を使いたくなってきたので gnupack の emacs を入れることにした。 ここにその顛末を述べたいと思う。 g…

とりあえず動いた memcpy4

// g++ -g -Wall -std=c++14 -o memcpy4 memcpy4.cpp #include <cstdio>#include <cstdlib>#include <cstdarg>#include <cstring>#include <cassert>#include <iostream> using namespace std; #define ASSERTF(assertion, ...) do { if (!(assertion)) { assertf(__FILE__, __LINE__, __func__, __VA_ARGS__); }} w</iostream></cassert></cstring></cstdarg></cstdlib></cstdio>…

C++ Atomic operations についてのメモ

mutex が必要ないわけではないということ atomic より粒度が大きいが現在でも有効な排他制御の手段。ということでいいかな。 粒度の細かい順に並べると atomic_thread_fence, atomic_flag atomic mutex, condition_variable lock_guard, unique_lock, once_f…

Windows 10 に teraterm を入れる

teraterm を入れた。 Tera Term (テラターム) プロジェクト日本語トップページ - OSDN からダウンロードしてきてインストール。そのときのバージョンは 4.87 cygterm.cfg 消える問題 teraterm を Program Files (x86) フォルダにインストールした場合、変な…

Windows 10 に Cygwin を入れる

Windows 10 に Cygwin を入れた。 Cygwin は 64bit版をインストール。64bit OS に32bit版では何かと問題らしいので。。。 (この記事を書いた 2015年9月頃はネット上にいくつか問題を指摘する声があったように記憶しているが、2016年5月時点では 32bit版 Cyg…