Novel by Gene Wolfe
The Book of the Long Sun is a series of four science fantasy novels or one four-volume novel by the American author Gene Wolfe. It is set in the same universe as The Book of the New Sun series that Wolfe inaugurated in 1980, and the Internet Science Fiction Database catalogs them both as sub-series of the "Solar Cycle", along with other writings. Wikipedia