| |    | 85019 packages online | 
 | 
|  | 
| 
 | 
| dev/c/SASalloca.lha |  |  | | No screenshot available | 
| Short: | Alloca() implementation for SAS/C |  | Author: | proels  fmi.uni-passau.de (Stefan Proels) |  | Uploader: | proels fmi uni-passau de (Stefan Proels) |  | Type: | dev/c |  | Architecture: | m68k-amigaos |  | Date: | 1995-07-20 |  
| Download: | dev/c/SASalloca.lha - View contents |  | Readme: | dev/c/SASalloca.readme |  | Downloads: | 1561 |  
 |  | The use of alloca() is quite common for many UNIX applications.
If you intend to port such a program using SAS/C you'd have to
eliminate all alloca()s as SAS/C doesn't supply this function.
There is already another "mostly portable" implementation of
alloca(). However, it does not work with SAS/C as it makes
assumptions about the compiler's handling of the stack-pointer
which are not true for SAS/C.
This is where SASalloca comes in. The idea is to (ab)use the
_PROLOG() and _EPILOG() hooks used by the profiler.
There are no limitations regarding the use of stackextention,
setjmp() and longjmp(), etc. In general, all you have to do is
to compile your sources with PROFILE enabled and to link them
with this alloca implementation.
This package is PUBLIC DOMAIN. Source included.
 |  | 
 Contents of dev/c/SASalloca.lha
  PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  840    1921  43.7% -lh5- 982d Jul 19  1995 SASalloca/alloca.c
[generic]                  411     660  62.3% -lh5- c625 Jul 19  1995 SASalloca/alloca.o
[generic]                  357     684  52.2% -lh5- e28b Jul 19  1995 SASalloca/include/alloca.h
[generic]                 3665    9772  37.5% -lh5- 776d Jul 19  1995 SASalloca/Readme
[generic]                  143     193  74.1% -lh5- c714 Jul 19  1995 SASalloca/SMakefile
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         5 files    5416   13230  40.9%            Jul 20  1995
 | 
 |  | 
|  | 
| Page generated in 0.02 seconds | 
| Aminet © 1992-2024 Urban 
Müller and the Aminet team.
Aminet contact address: <aminet  aminet net> |