mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-27 15:24:00 +00:00
runtime/goto.h: Use an empty inline asm statement rather than an assignment to a global volatile variable to stop gcc from optimizing away labels which are only referenced via the inline asm entry points. This is better, because empty inline asm statements don't result in any object code, whereas assignments to global volatile registers do. wrapper.h, wrapper.mod: Various stylistic improvements. Clean up some old junk and some new junk, and fix a few misspellings. Rearrange a few things.
32 lines
671 B
C
32 lines
671 B
C
/*
|
|
** Copyright (C) 1995 University of Melbourne.
|
|
** This file may only be copied under the terms of the GNU Library General
|
|
** Public License - see the file COPYING.LIB in the Mercury distribution.
|
|
*/
|
|
|
|
#ifndef WRAPPER_H
|
|
#define WRAPPER_H
|
|
|
|
extern const char *progname;
|
|
extern int mercury_argc;
|
|
extern char ** mercury_argv;
|
|
extern int mercury_exit_status;
|
|
|
|
extern unsigned heap_size;
|
|
extern unsigned detstack_size;
|
|
extern unsigned nondstack_size;
|
|
|
|
extern unsigned heap_zone_size;
|
|
extern unsigned detstack_zone_size;
|
|
extern unsigned nondstack_zone_size;
|
|
|
|
extern unsigned pcache_size;
|
|
|
|
extern int r1val;
|
|
extern int r2val;
|
|
extern int r3val;
|
|
|
|
extern bool check_space;
|
|
|
|
#endif
|