This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Loop unrolling and asm
- To: Christian Iseli <chris at lslsun dot epfl dot ch>
- Subject: Re: Loop unrolling and asm
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 10 Mar 1998 11:22:33 -0700
- cc: egcs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199803100938.KAA18441@lslsun17.epfl.ch>you write:
> Now the question: how do you go about including an asm with labels
> in a loop that will be unrolled?
Use the "forward/backward" label feature of gas. Of course it
probably won't work with other assemblers.
The code will look soemthing like this
jmp 0f
[ ... blah blah blah ... ]
0:
[ ... blah blah blah ... ]
jmp 0b
jeff