Determining architecture type at run time