core: move memory configuration to C file

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>