daniel tian wrote: >> The compiler should work with or without defining LEGITIMIZE_RELOAD_ADDRESS. >> It's often difficult to write a correct LEGITIMIZE_RELOAD_ADDRESS without >> knowing the internals of how reload works. Therefore, I strongly recommend >> first writing the port without LEGITIMIZE_RELOAD_ADDRESS -- after the port >> is working correctly you can go back and add LEGITIMIZE_RELOAD_ADDRESS to >> generate more efficient code. >> >> > > Do you mean that I should not write any reload code including > secondary reload? And if it is going to work fine, then keep working > on reload part? > You should write your secondary reload code, but not LEGITIMIZE_RELOAD_ADDRESS.
After your port is working well, then define LEGITIMIZE_RELOAD_ADDRESS to optimize the code better. jeff