タグ

2010年6月20日のブックマーク (2件)

  • Memory Map (x86) - OSDev Wiki

    This article describes the contents of the computer's physical memory at the moment that the BIOS jumps to your bootloader code. Real mode address space (< 1 MiB) When a typical x86 PC boots it will be in Real Mode, with an active BIOS. During the time the CPU remains in Real Mode, IRQ0 (the clock) will fire repeatedly, and the hardware that is used to boot the PC (floppy, hard disk, CD, Network c

  • その7 メモリリークの検出方法

    ホーム < ゲームつくろー! < Programming TIPs編 < メモリリークの検出方法 その7 メモリリークの検出方法 C言語で泣かされるのがメモリリークです。メモリリークはnew演算子などでヒープメモリを動的確保した後にdelete演算子などでそれを解放し忘れた時に発生します。プログラムが込み入ってきたり、複雑にヒープメモリを確保した場合など、うっかりdeleteし忘れる事があります。これはプログラムが複雑になってくるほど探すのが困難になります。 Visual C++にはデバッグ時にメモリリークを自動検出する機能が備わっています。この章ではその方法を紹介します。 ① メモリリーク検出方法 Visual C++のランタイムライブラリには「デバッグルーチン」と呼ばれるデバッグ専用の関数が沢山用意されています。その中でメモリリークを検出してくれるのは_CrtSetDbgFlag関数で