タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

cとbinaryに関するpetite_blueのブックマーク (1)

  • 更新履歴兼雑記 - C で curry 化 @x86

    http://nicosia.is.s.u-tokyo.ac.jp/pub/essay/hagiya/h/curry を Sun から x86 に。 C言語は便利で楽しいなあ、と思わざる得ないのである。 に激しく同意なのです。 #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> int (*curry(int (*F)(), int A))() { char *code = (char*)malloc(18); *(char*)code = 0x55; *(short int*)(code+1) = 0xe589; *(short int*)(code+3) = 0x75ff; *(char*)(code+5) = 0x08; *(char*)(code+6) = 0x6a; *(char*)(code+7) = (ch

    更新履歴兼雑記 - C で curry 化 @x86
    petite_blue
    petite_blue 2006/04/24
    実行時に関数を生成できるよ
  • 1