タグ

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

  • 関連タグはありません

タグの絞り込みを解除

Cに関するrjjのブックマーク (2)

  • 旧石器時代のポインタをご利用の皆様へ ~provenance入門~ - Qiita

    現代のプログラミング言語ではポインタは単なるアドレスではなく,provenanceを伴った参照として扱われています. 世界は既に変わっています. 概要 ポインタは単なるアドレスではありません. ポインタにはprovenanceという,どのオブジェクト由来かの情報が含まれています. Provenanceを使うことで,最適化が効きやすくなったり,堅牢なプログラムを書きやすくなったりします. 追記: 次の英語記事を読むとprovenanceが必要な理由についてもっとよく知ることができます.クリックしよう!!!!(2020-12-15) https://www.ralfj.de/blog/2020/12/14/provenance.html ポインタはアドレスではない 次のCプログラムを見てみましょう. #include <stdio.h> #include <string.h> int main

    旧石器時代のポインタをご利用の皆様へ ~provenance入門~ - Qiita
    rjj
    rjj 2020/09/07
    "§6.5.9 Two pointers compare equal if and only if … one is a pointer to one past the end of one array object and the other is a pointer to the start of a different array object that happens to immediately follow the first array object in the address space."とどう整合性を付けるか。
  • C Is Not a Low-level Language - ACM Queue

    April 30, 2018 Volume 16, issue 2 PDF C Is Not a Low-level Language Your computer is not a fast PDP-11. David Chisnall In the wake of the recent Meltdown and Spectre vulnerabilities, it's worth spending some time looking at root causes. Both of these vulnerabilities involved processors speculatively executing instructions past some kind of access check and allowing the attacker to observe the resu

    rjj
    rjj 2020/09/07
  • 1