1. An apparatus for implementing a network device component in a network device, comprising: an execution engine having an implementation of the network device component to process data received by the network device; and a compiler to generate the implementation of the network device component through compilation of a general representation using network device data for compiler optimization.