A general method for the synthesis of chiral multifunctional chain compounds incorporating pentitol fragments