GCC Middle and Back End API Reference
|
Macros | |
#define | BLOCKSIZE 4096 |
Functions | |
static void | usage () |
static void | dosum () |
int | main () |
#define BLOCKSIZE 4096 |
Important: BLOCKSIZE must be a multiple of 64.
|
static |
Some executable formats have timestamps in the first 16 bytes, yuck.
Iterate over full file contents.
We read the file in blocks of BLOCKSIZE bytes. One call of the computation function processes the whole buffer so that with the next round of the loop another block can be read.
Read block. Take care for partial reads.
If end of file is reached, end the loop.
Process buffer with BLOCKSIZE bytes. Note that BLOCKSIZE % 64 == 0
Add the last bytes if necessary.
int main | ( | ) |
|
static |
Generate checksums of executables for PCH validation Copyright (C) 2005-2013 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.