Before you go any further: have you read our paper about the new ABI? See http://people.redhat.com/lockhart/.gcc04/MasterGCC-2side.pdf. It's the last paper. It seems that what you're trying to do overlaps with this work to a large extent. Andrew.