1. A method for a compiler to produce an executable module to be executed by a computer system including a main processor and active memory devices, the method comprising: dividing source code into code sections; identifying a first code section to be executed by the active memory devices, wherein the first code section is one of the code sections; identifying data structures that are used by the first code section; classifying the data structures based on pre-defined attributes; formulating, by the compiler, a storage mapping plan for the data structures based on the classifying, the storage mapping plan for the data structures being related to a first active memory device and a second active memory device; and generating, by the compiler, mapping code that implements the storage mapping plan, wherein the mapping code is part of the executable module and wherein the mapping code maps storing of the data structures to storage locations in the active memory devices; wherein generating, by the compiler, mapping code that implements the storage mapping plan comprises generating mapping code that maps a first data structure to a first active memory device at a first time during runtime, the data structures including the first data structure and the active memory devices including the first active memory device; wherein the first active memory device is hardware comprising a first memory vault and a first processing element; wherein the second active memory device is hardware comprising a second memory vault and a second processing element.