This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Loop unrolling and asm



  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]