A large number of legacy serial codes need to be parallelized, and the complexity of parallel programs and the diversity of parallel computing platforms lead to high cost of transformation. For this reason, a three-layer parallel programming framework based on markup language is designed, which completes the two transformation stages from serial program layer to parallel intermediate code layer and from parallel intermediate code layer to target parallel programming language program layer. The method of language marking of serial code is used to realize the parallel intermediate code layer, which is actually an abstraction of the programming language of the parallel platform of shared storage and distributed storage. The framework also implements a performance tagging method, which can be used for automatic optimization of parallel parameters. The experimental results for radar data processing show that the corresponding parallel code is generated, and the parallel speedup ratio is equivalent to that of the manual parallel code.