From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2525460e44fd103213d056340140c4cf.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9706121959.AA07368@sauron.zk3.dec.com> Date: Thu, 12 Jun 97 15:59:23 -0400 From: Jerry Feldman Subject: Re: Alpha Assembly on RHL4.2 In-Reply-To: > > I am trying to compile an assembly language program using the GNU > assembler gas on RHL4.2 and I keep getting Segmentation Fault (core > dumped) errors. I have checked my code a zillion times and just can't > figure out what's going wrong. Anybody have any suggestions or good > references for Alpha Assembly Language? One common error is on function calls. Generally, the first 6 parameters are passed as registers (eg. 16-21). If you are passing a floating point parameter, it is passed by a corresponding fp register. Also, register 31 (and f31) always contains zero. Also, you should be aware that some registers must be preserved over calls where some can be trashed. +--------------------------------------------------------------------+ Jerry Feldman Digital Unix Development Environment Digital Equipment Corp. (work)gaf@zk3.dec.com (home)gaf@mediaone.net 110 Spitbrook Rd. Mailstop: ZKO3-2/W17 Nashua, NH 03062-9987 (603)881-2970, DTN:381-2970 +--------------------------------------------------------------------+ -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com