Accelerating general purpose Java programs with specific hardware raises several research questions about the partitioning of code and data between hardware and software. This paper addresses the memory allocation in mixed hardware/software architectures with non-uniform memory access. We present a comparison of two commonly used algorithms for static memory allocation with a globally optimal solution.