in the 3rd century bce , during the reign of the buddhist emperor ashoka , a great canon of literaturenow known as the pali canonwas compiled from the long remembered and recited discourses of the buddha .