Parser: host ports code optimization.