This paper presents the Compaan tool that automatically transforms a nested loop program written in Matlab into a processnetwork specification. The process network model of computation fits better with the new emerging kind of embedded architectures that use coprocessors. Processnetworkscan describe both fine-grained andcoarsegrained parallelism, making the mapping of the applications easier. Keywords Process Networks, Matlab, Mapping, Embedded Architectures. 1