| To: | Fabrizio Fazzino <fabrizio@fazzino.it> |
|---|---|
| Subject: | Re: Assembly macro with parameters |
| From: | "Maciej W. Rozycki" <macro@linux-mips.org> |
| Date: | Mon, 4 Jul 2005 13:12:48 +0100 (BST) |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <42C7BE64.7020102@fazzino.it> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <425573AD.9010702@fazzino.it> <20050407182549.GA24235@linux-mips.org> <4256B5BE.8070708@fazzino.it> <20050408165717.GA8157@nevyn.them.org> <42C429C3.2090905@fazzino.it> <Pine.LNX.4.61L.0507010927130.30138@blysk.ds.pg.gda.pl> <42C7BE64.7020102@fazzino.it> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Sun, 3 Jul 2005, Fabrizio Fazzino wrote: > By the way, is there any quick way of writing a setreg(reg_num,reg_val) > C macro to set the value of a register? It would make no sense as GCC would still be free to use this register for something else, therefore either destroying your "explicitly" assigned data or getting data already there destroyed. You are really after asm constraints and explicit register variables as outlined in my previous response. See GCC documentation for how to make use of these. BTW, how about adding support for opcodes you are interested in to binutils instead? It would make interfacing them to GCC much easier. Maciej |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: top and SMP, Geert Uytterhoeven |
|---|---|
| Next by Date: | IOC3 not working on SGI O2K, Arianna Arona |
| Previous by Thread: | Re: Assembly macro with parameters, Geert Uytterhoeven |
| Next by Thread: | Re: Assembly macro with parameters, Fabrizio Fazzino |
| Indexes: | [Date] [Thread] [Top] [All Lists] |