First-principles techniques for studies of elements and compounds under high pressure will be outlined. Accuracy issues and comparison with experiment will be in focus. Examples, such as compressed and heated iron and large void containing CoSn (B35)-type structure, will be discussed.