1. A method for software migration from a legacy hardware platform to a target hardware platform in an industrial process control and automation system comprising: receiving at least one source code file associated with the legacy hardware platform, the at least one source code file being part of the software migration from the legacy hardware platform to the target hardware platform; identifying one or more absolute memory addresses of the legacy hardware platform included in the at least one source code file; compiling the at least one source code file into first assembly language instructions executable in the legacy hardware platform; translating the first assembly language instructions into second assembly language instructions executable in the target hardware platform; and for each of the one or more absolute memory addresses, including an address remapping function in an assembly language instruction block associated with the target hardware platform; wherein each of the one or more absolute memory addresses of the legacy hardware platform is identified during the compiling by identifying a typecasting operator in the at least one source code file that includes the absolute memory address as an argument.