Details on -Msmart

Can someone provide a little more detail on what -Msmart does? Any details on what kinds of constructs benefit? If used, does -Msmart result in an image that will execute on Intel (slower would be ok)?



Hi Pete,

“-Msmart” causes the driver to invoke a post pass assembly instruction scheduler called pgsmart. It doesn’t effect any specific code construct, rather it’s looking for opportunities to minimize instruction latency.

Although the documentation says that “-Msmart” is “AMD64-specific”, it is also invoked on EM64T. EM64T had not been released when the pgsmart utility was first created and I think the note meant that it’s 64-bit specific not just AMD specific. I’ll ask that the documentation be updated.