Wrap gcc execution into subroutine.