1. A computer-implemented method performed by a computerized device, comprising: receiving program code not complying with a limitation of an embedded computing environment; transforming at least part of the program code to modified program code in order for the modified program code to be in compliance with the limitation; and storing the modified program code on a storage device, wherein the modified program code complies with the limitation of the embedded computing environment; and wherein transforming the program code comprises replacing dynamic memory allocation instructions for objects having a predetermined size with static memory allocation instructions, and wherein replacing the dynamic memory allocation instructions further comprises determining a maximal number of objects having a predetermined size that exist concurrently when at least a part of the program code is executed; adding to the program code instructions for allocating an object pool having a static size for retaining at least the maximal number of objects of the predetermined size, and for allocating and deallocating objects from the object pool; and replacing the dynamic memory allocation instructions with instructions for: allocating an object of the predetermined size from the object pool; and freeing the object of the predetermined size by returning the object to the object pool; and wherein said replacing the dynamic memory allocation instructions for a second type comprises: adding to the program code instructions for allocating a multiplicity of sets of slots each associated with a different slot size, wherein each of the multiplicity of sets of slots has a static size, and for allocating and deallocating objects from any of the sets of slots; and replacing the dynamic memory allocation instructions with instructions for: allocating an object having an object size from a set of slots associated with a slot size that is at least the object size, and that has available slots; and freeing the object by returning the object to the set from which it was allocated.