Xavier Distelzweig #3938

Are there specific rules on how compound nouns are formed in Quenya? I. e., do roots get stuck together without endings or are words just stuck together?