mirror of
https://github.com/ctm/syn68k.git
synced 2024-12-02 23:50:23 +00:00
27 lines
657 B
C
27 lines
657 B
C
#ifndef _recompile_h_
|
|
#define _recompile_h_
|
|
|
|
#ifdef GENERATE_NATIVE_CODE
|
|
|
|
#include "block.h"
|
|
#include "deathqueue.h"
|
|
|
|
extern void recompile_block_as_native (Block *b);
|
|
extern double native_fraction (void);
|
|
|
|
/* This is the number of times a nonnative block must be called before
|
|
* we scrap it and recompile it as native.
|
|
*/
|
|
#define RECOMPILE_CUTOFF 50
|
|
|
|
/* This is how many times a descendent of a nonnative block about to be
|
|
* recompiled must have been called before we decide to smash it as
|
|
* well. Smashing nearby blocks avoids extra recompiles.
|
|
*/
|
|
#define RECOMPILE_CHILD_CUTOFF 35
|
|
|
|
|
|
#endif /* GENERATE_NATIVE_CODE */
|
|
|
|
#endif /* !_recompile_h_ */
|