Compilation and Architecture Exploration for Network Processors