20 lines
499 B
Plaintext
20 lines
499 B
Plaintext
from stdint import *
|
|
import memhub
|
|
|
|
# Global mbuddy pointer
|
|
_mbuddy: memhub.MemBuddy*
|
|
|
|
# Source buffer size (1MB)
|
|
define SRC_BUF_SIZE = 1048576
|
|
|
|
# vpi buffer size (256KB).
|
|
# Compile-time constant via define: a module-level global would emit a strong symbol per module, causing llvm-link errors.
|
|
define PYI_BUF_SIZE = 262144
|
|
|
|
# Topological sort constants
|
|
define MAX_CLASSES = 512
|
|
define MAX_FILE_DEPS = 256
|
|
define MAX_DEP_EDGES = 16
|
|
define SHA1_LEN = 17
|
|
define CLASS_NAME_LEN = 64
|