We present ab initio calculations of the interlayer exchange coupling
between two, in general noncollinearly aligned magnetic slabs embedded
in a nonmagnetic spacer. Based on a surface Green's function formalis
m, two equivalent but formally and physically different approaches are
examined and discussed. For the Co/Cu/Co(001) system we demonstrate t
he usefulness of the concept of infinitesimal rotations in order to ca
lculate the coupling for a finite relative angle theta, in particular
for theta=pi, between the corresponding spin directions in the magneti
c slabs. The temperature and layer dependence of the interlayer exchan
ge coupling is examined and the possibility for noncollinear coupling
is investigated.