-
大小: 739KB文件类型: .zip金币: 1下载: 0 次发布日期: 2021-05-29
- 语言: 其他
- 标签: GNU_Make_For
资源简介
GNU Make For Windows
代码片段和文件信息
/* alloca.c -- allocate automatically reclaimed memory
(Mostly) portable public-domain implementation -- D A Gwyn
This implementation of the PWB library alloca function
which is used to allocate space off the run-time stack so
that it is automatically reclaimed upon procedure exit
was inspired by discussions with J. Q. Johnson of Cornell.
J.Otto Tennant contributed the Cray support.
There are some preprocessor constants that can
be defined when compiling for your specific system for
improved efficiency; however the defaults should be okay.
The general concept of this implementation is to keep
track of all alloca-allocated blocks and reclaim any
that are found to be deeper in the stack than the current
invocation. This heuristic does not reclaim storage as
soon as it becomes invalid but it will do so eventually.
As a special case alloca(0) reclaims storage without
allocating any. It is a good idea to use alloca(0) in
your main control loop etc. to force garbage collection. */
#ifdef HAVE_CONFIG_H
#include
#endif
#ifdef HAVE_STRING_H
#include
#endif
#ifdef HAVE_STDLIB_H
#include
#endif
#ifdef emacs
#include “blockinput.h“
#endif
/* If compiling with GCC 2 this file‘s not needed. */
#if !defined (__GNUC__) || __GNUC__ < 2
/* If someone has defined alloca as a macro
there must be some other way alloca is supposed to work. */
#ifndef alloca
#ifdef emacs
#ifdef static
/* actually only want this if static is defined as ““
-- this is for usg in which emacs must undefine static
in order to make unexec workable
*/
#ifndef STACK_DIRECTION
you
lose
-- must know STACK_DIRECTION at compile-time
#endif /* STACK_DIRECTION undefined */
#endif /* static */
#endif /* emacs */
/* If your stack is a linked list of frames you have to
provide an “address metric“ ADDRESS_FUNCTION macro. */
#if defined (CRAY) && defined (CRAY_STACKSEG_END)
long i00afunc ();
#define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg))
#else
#define ADDRESS_FUNCTION(arg) &(arg)
#endif
#if __STDC__
typedef void *pointer;
#else
typedef char *pointer;
#endif
#ifndef NULL
#define NULL 0
#endif
/* Different portions of Emacs need to call different versions of
malloc. The Emacs executable needs alloca to call xmalloc because
ordinary malloc isn‘t protected from input signals. On the other
hand the utilities in lib-src need alloca to call malloc; some of
them are very simple and don‘t have an xmalloc routine.
Non-Emacs programs expect this to call use xmalloc.
Callers below should use malloc. */
#ifndef emacs
#define malloc xmalloc
#endif
extern pointer malloc ();
/* Define STACK_DIRECTION if you know the direction of stack
growth for your system; otherwise it will be automatically
deduced at run-time.
STACK_DIRECTION > 0
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1907 1996-08-28 22:13 make-3.75\README
文件 7902 1995-11-17 20:01 make-3.75\INSTALL
文件 18321 1991-06-03 21:36 make-3.75\COPYING
文件 144107 1996-08-28 22:11 make-3.75\ChangeLog
文件 23071 1996-07-14 20:52 make-3.75\NEWS
文件 94634 1996-07-26 01:35 make-3.75\configure
文件 10532 1996-08-28 22:13 make-3.75\Makefile.in
文件 3766 1996-07-20 10:30 make-3.75\configure.in
文件 2467 1996-07-14 18:11 make-3.75\build.sh.in
文件 772 1996-05-09 18:06 make-3.75\mkinstalldirs
文件 1685 1996-07-14 20:57 make-3.75\configh.dos
文件 1389 1995-03-17 20:56 make-3.75\configure.bat
文件 1952 1996-05-13 19:39 make-3.75\README.Amiga
文件 7542 1996-05-09 19:02 make-3.75\config.ami
文件 10691 1996-05-13 19:39 make-3.75\Makefile.ami
文件 208 1996-05-09 19:02 make-3.75\SCOPTIONS
文件 8604 1996-05-13 19:38 make-3.75\SMakefile
文件 2738 1996-05-13 19:38 make-3.75\amiga.c
文件 917 1996-05-13 19:40 make-3.75\amiga.h
文件 344 1996-05-09 19:02 make-3.75\make.lnk
文件 8558 1996-07-20 12:06 make-3.75\config.h-vms
文件 1383 1996-06-22 20:26 make-3.75\makefile.com
文件 4241 1996-07-20 12:06 make-3.75\makefile.vms
文件 2322 1996-07-20 12:06 make-3.75\readme.vms
文件 819 1996-03-20 14:57 make-3.75\vmsdir.h
文件 5821 1996-07-26 00:56 make-3.75\vmsfunctions.c
文件 16557 1996-07-20 12:06 make-3.75\vmsify.c
文件 4223 1996-07-28 22:15 make-3.75\README.WIN32
文件 16341 1996-05-15 20:14 make-3.75\build_w32.bat
文件 7846 1996-05-14 22:03 make-3.75\config.h.WIN32
文件 40 1996-05-16 16:20 make-3.75\subproc.bat
............此处省略93个文件信息
- 上一篇:直流稳压电源的设计和制作
- 下一篇:fluent的jou文件输出壁面受力结果
评论
共有 条评论