home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / SmallEiffel.lha / SmallEiffel / sys / gc_lib / alpha.c < prev    next >
Text File  |  1999-06-05  |  1KB  |  28 lines

  1. /*
  2. -- This file is  free  software, which  comes  along  with  SmallEiffel. This
  3. -- software  is  distributed  in the hope that it will be useful, but WITHOUT 
  4. -- ANY  WARRANTY;  without  even  the  implied warranty of MERCHANTABILITY or
  5. -- FITNESS  FOR A PARTICULAR PURPOSE. You can modify it as you want, provided
  6. -- this header is kept unaltered, and a notification of the changes is added.
  7. -- You  are  allowed  to  redistribute  it and sell it, alone or as a part of 
  8. -- another product.
  9. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  10. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  11. --                       http://www.loria.fr/SmallEiffel
  12. --
  13. */
  14. /* 
  15.    For DEC Alpha architecture.
  16. */
  17.  
  18. void mark_stack_and_registers(void){
  19.   void**stack_pointer;
  20.   jmp_buf stack_top;
  21.   (void)setjmp(stack_top);
  22.   stack_pointer=((void**)stack_top);
  23.   /* Addresses decrease as the stack grows. */
  24.   for(; stack_pointer <= stack_bottom; stack_pointer++)
  25.     gc_mark(*stack_pointer);
  26. }
  27.  
  28.