We can compile with whole AOT in less time as compared to compilation in Mophix. From Dynamics Ax 2012 R2 cu7 and later a utility provided for this purpose. You can found AXBuild exe from this location.
X:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\bin
And compilation command is as follow.
axbuild.exe xppcompileall /s=01 /altbin=”C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin” /log:”C:\Temp”
Where s=01 is the AOS server Id