The invention provides a method of allocating memory in a wireless communication system. The method includes the steps of loading an application into a wireless communication device, compiling at least a portion of the application into native instructions, determining a runtime sensitivity of the native instructions, determining availability of internal memory, and inserting at least a portion of the native instructions into the internal memory at runtime based on the determined availability of internal memory and the runtime sensitivity determination. An associated computer usable medium and a wireless communication device are disclosed.