Software component techniques are widely used to enhance productivity and reduce the cost of software systems development. This paper proposes optimization of component connections for a component system that is suitable for embedded systems. This component system adopts a static model that statically instantiates and connects components. The attributes of the components and the interface code for connecting the components are statically generated by the generator. No instantiation overhead is introduced at runtime, and the runtime overhead of the interface code is minimized. A case study using a serial interface driver is presented to evaluate the execution time overhead, the software code size, and the executable file size. The case study shows the effectiveness of optimization. Keywords-component-based development; real-time operating system;