Abstract:This paper introduces a study of temporary variable allocation in prolog compiler. It gives a new allocation method without backtracking. The method is compared with the old one with backtracking and the advantages of the new method is introduced.