Hardware-Aware Affordance Detection for Application in Portable Embedded Systems