home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / ae / AE / aecrt.s < prev    next >
Encoding:
Text File  |  1990-02-28  |  1.7 KB  |  47 lines

  1. /* AE program profiling system.
  2.    Assembly code for AE_START and AE_FLUSH_BUFFER.
  3.    Copyright (C) 1989, 1990 by James R. Larus (larus@cs.wisc.edu)
  4.  
  5.    AE and AEC are free software; you can redistribute it and/or modify it
  6.    under the terms of the GNU General Public License as published by the
  7.    Free Software Foundation; either version 1, or (at your option) any
  8.    later version.
  9.  
  10.    AE and AEC are distributed in the hope that it will be useful, but
  11.    WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.    General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with GNU CC; see the file COPYING.  If not, write to James R.
  17.    Larus, Computer Sciences Department, University of Wisconsin--Madison,
  18.    1210 West Dayton Street, Madison, WI 53706, USA or to the Free
  19.    Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
  20.  
  21.  
  22. /* $Header: /var/home/larus/AE/AE/RCS/aecrt.s,v 2.0 90/02/09 17:20:35 larus Exp Locker: larus $ */
  23.  
  24.  
  25.  
  26. /* The startup routine (AE_START) initializes the world and invokes
  27.    AE_INITIALIZE, before invoking MAIN.
  28.    This code needs to be hand-coded.  Look at the routine "start" when using
  29.    profiling (-p) to get the idea. */
  30.  
  31. #define AE_START_ASM
  32.  
  33.  
  34.  
  35. /* Flush AE buffer by writing its contents to a file and reset the
  36.    buffer pointer.  This routine probably must be written in assembly
  37.    language since it cannot affect ANY register visible to its caller
  38.    (not just the callee-saved registers) since it is called at arbitrary
  39.    points in a function.
  40.    Hand-adapted from output of C compiler of the C version of
  41.    AE_FLUSH_BUFFER. */
  42.  
  43. #define AE_FLUSH_BUFFER_ASM
  44.  
  45.  
  46. #include "ae-machine.h"
  47.