Difference between revisions of "Modules/memory/Settings"
From MSX Game Library
(Created page with "Library configuration (<tt>msxgl_config.h</tt>): <syntaxhighlight lang="c"> #define MEM_USE_VALIDATOR FALSE // Activate validator to handle invalide input value #define MEM_US...") |
|||
Line 1: | Line 1: | ||
Library configuration (<tt>msxgl_config.h</tt>): | Library configuration (<tt>msxgl_config.h</tt>): | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
− | #define MEM_USE_VALIDATOR FALSE // Activate validator to handle invalide input value | + | #define MEM_USE_VALIDATOR FALSE // Activate validator to handle invalide input value |
− | #define MEM_USE_FASTCOPY FALSE // Add support for fast-copy function (using unrolled-LDI loop) | + | #define MEM_USE_FASTCOPY FALSE // Add support for fast-copy function (using unrolled-LDI loop) |
− | #define MEM_USE_FASTSET | + | #define MEM_USE_FASTSET FALSE // Add support for fast-set function (using unrolled-LDI loop) |
− | #define MEM_USE_DYNAMIC | + | #define MEM_USE_DYNAMIC TRUE // Add support for malloc style dynamic allocator |
+ | #define MEM_USE_BUILTIN TRUE // Use SDCC built-in memcpy and memset function instead of MSXgl ones | ||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 00:06, 23 September 2025
Library configuration (msxgl_config.h):
#define MEM_USE_VALIDATOR FALSE // Activate validator to handle invalide input value #define MEM_USE_FASTCOPY FALSE // Add support for fast-copy function (using unrolled-LDI loop) #define MEM_USE_FASTSET FALSE // Add support for fast-set function (using unrolled-LDI loop) #define MEM_USE_DYNAMIC TRUE // Add support for malloc style dynamic allocator #define MEM_USE_BUILTIN TRUE // Use SDCC built-in memcpy and memset function instead of MSXgl ones