The configuration of product-lines can be an error-prone and time consuming process. In this thesis we extend on the work by Behjati [A model-based approach to the software configuration of integrated control systems,2012], where a product-line methodology has been proposed. The end goal is to implement a configuration tool that will ease the product-line configuration process. The configuration tool demands two model transformations. The first transformation produces an intermediate model (used internally by the tool) from a product-line model, the implementation of this transformation is fully described in this thesis. The second transformation uses this intermediate model, together with OCL constraints, to produce a logic-program, specified in Prolog. The efficiency of the generated Prolog code is critical for the configuration tool. In this thesis we take steps towards this transformation. We hypothesized that the following aspects of the Prolog code is critical for efficiency: How instances of the intermediate model are represented in Prolog (i.e., the structure of the Prolog query), how associations are represented and resolved, and how the Prolog predicates, representing the intermediate-model and OCL, are organized. We performed a large scale experiment investigating these factors, as well as the impact of instance size, the configuration of attributes (i.e., if values has been set), and impact of changing the OCL constraint sets used. The main findings were the following: Representing the instances as a binary-tree structure, combined with a resolution of associations through id-references, yielded the highest efficiency. Further, condensing the Prolog predicates led to increased efficiency in cases where the individual predicates (i.e., the transformed OCL constraints), shared association-navigations. The configuration of attributes were found to not impact efficiency. Future work can take advantage of these findings to move even closer to getting a fulfilled and efficient transformation to Prolog.