Googling suggests that compact has the stress on the last syllable when used as an adjective and on the first syllable when used as a noun.
Is this common for all English dialects or are there differences for example between British and American English in this regard?