2009-12-08 18:46:35 +00:00
|
|
|
/*
|
|
|
|
** LuaJIT core and libraries amalgamation.
|
2013-02-11 11:54:48 +00:00
|
|
|
** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
|
2009-12-08 18:46:35 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
+--------------------------------------------------------------------------+
|
|
|
|
| WARNING: Compiling the amalgamation needs a lot of virtual memory |
|
2010-10-04 23:36:54 +00:00
|
|
|
| (around 200 MB with GCC 4.x)! If you don't have enough physical memory |
|
2009-12-08 18:46:35 +00:00
|
|
|
| your machine will start swapping to disk and the compile will not finish |
|
|
|
|
| within a reasonable amount of time. |
|
|
|
|
| So either compile on a bigger machine or use the non-amalgamated build. |
|
|
|
|
+--------------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define ljamalg_c
|
|
|
|
#define LUA_CORE
|
|
|
|
|
2011-11-04 13:07:19 +00:00
|
|
|
/* To get the mremap prototype. Must be defined before any system includes. */
|
2009-12-08 18:46:35 +00:00
|
|
|
#if defined(__linux__) && !defined(_GNU_SOURCE)
|
|
|
|
#define _GNU_SOURCE
|
|
|
|
#endif
|
|
|
|
|
2011-01-10 02:43:18 +00:00
|
|
|
#ifndef WINVER
|
|
|
|
#define WINVER 0x0500
|
|
|
|
#endif
|
|
|
|
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lua.h"
|
|
|
|
#include "lauxlib.h"
|
|
|
|
|
|
|
|
#include "lj_gc.c"
|
|
|
|
#include "lj_err.c"
|
2010-11-09 11:09:54 +00:00
|
|
|
#include "lj_char.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_bc.c"
|
|
|
|
#include "lj_obj.c"
|
2013-02-27 16:11:31 +00:00
|
|
|
#include "lj_buf.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_str.c"
|
|
|
|
#include "lj_tab.c"
|
|
|
|
#include "lj_func.c"
|
|
|
|
#include "lj_udata.c"
|
|
|
|
#include "lj_meta.c"
|
2011-06-07 19:37:24 +00:00
|
|
|
#include "lj_debug.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_state.c"
|
|
|
|
#include "lj_dispatch.c"
|
|
|
|
#include "lj_vmevent.c"
|
2011-06-03 15:12:46 +00:00
|
|
|
#include "lj_vmmath.c"
|
2012-08-25 21:02:29 +00:00
|
|
|
#include "lj_strscan.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_api.c"
|
|
|
|
#include "lj_lex.c"
|
|
|
|
#include "lj_parse.c"
|
2011-06-12 22:58:13 +00:00
|
|
|
#include "lj_bcread.c"
|
|
|
|
#include "lj_bcwrite.c"
|
2012-09-21 14:32:24 +00:00
|
|
|
#include "lj_load.c"
|
2010-12-04 23:11:35 +00:00
|
|
|
#include "lj_ctype.c"
|
2010-12-04 23:18:07 +00:00
|
|
|
#include "lj_cdata.c"
|
|
|
|
#include "lj_cconv.c"
|
2011-01-06 22:30:04 +00:00
|
|
|
#include "lj_ccall.c"
|
2011-11-14 13:15:57 +00:00
|
|
|
#include "lj_ccallback.c"
|
2011-01-26 20:46:02 +00:00
|
|
|
#include "lj_carith.c"
|
2011-01-10 02:43:18 +00:00
|
|
|
#include "lj_clib.c"
|
2010-12-04 23:20:59 +00:00
|
|
|
#include "lj_cparse.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_lib.c"
|
|
|
|
#include "lj_ir.c"
|
|
|
|
#include "lj_opt_mem.c"
|
|
|
|
#include "lj_opt_fold.c"
|
|
|
|
#include "lj_opt_narrow.c"
|
|
|
|
#include "lj_opt_dce.c"
|
|
|
|
#include "lj_opt_loop.c"
|
2011-02-02 01:29:37 +00:00
|
|
|
#include "lj_opt_split.c"
|
2012-07-02 21:47:12 +00:00
|
|
|
#include "lj_opt_sink.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_mcode.c"
|
|
|
|
#include "lj_snap.c"
|
|
|
|
#include "lj_record.c"
|
2010-12-08 01:11:18 +00:00
|
|
|
#include "lj_crecord.c"
|
2010-12-05 16:12:34 +00:00
|
|
|
#include "lj_ffrecord.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lj_asm.c"
|
|
|
|
#include "lj_trace.c"
|
|
|
|
#include "lj_gdbjit.c"
|
|
|
|
#include "lj_alloc.c"
|
|
|
|
|
|
|
|
#include "lib_aux.c"
|
|
|
|
#include "lib_base.c"
|
|
|
|
#include "lib_math.c"
|
|
|
|
#include "lib_string.c"
|
|
|
|
#include "lib_table.c"
|
|
|
|
#include "lib_io.c"
|
|
|
|
#include "lib_os.c"
|
|
|
|
#include "lib_package.c"
|
|
|
|
#include "lib_debug.c"
|
|
|
|
#include "lib_bit.c"
|
|
|
|
#include "lib_jit.c"
|
2010-12-04 23:43:47 +00:00
|
|
|
#include "lib_ffi.c"
|
2009-12-08 18:46:35 +00:00
|
|
|
#include "lib_init.c"
|
|
|
|
|