The film you are remembering is "Skinny and Fatty":
http://us.imdb.com/title/tt0407643/
At the end of the film Oyama (Fatty) goes to the edge of a hill, yells out "Komatsu" (Skinny's name) and essentially thanks his friend for his helping him to become a stronger person. You can buy a VHS of "Skinny and Fatty" at this site: http://www.nextgen-video.com/skinny.htm