support optimize code
support target platform