[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] local labels in gcc assembler
From: |
Clemens Buchacher |
Subject: |
Re: [avr-gcc-list] local labels in gcc assembler |
Date: |
Thu, 29 Jan 2004 22:24:25 +0100 |
User-agent: |
Mutt/1.5.5.1+cvs20040105i |
Hi,
According to as.info you can use local labels or dollar labels. I
think a solution with dollar labels would look like this:
.func sub1
sub1: if_something
breq 1
ret
1$ do_something
ret
.endfunc
.func sub2
sub2: if_something
breq 1
ret
1$ do_something
ret
.endfunc
You can only use positive integers to name the label. Using local labels
you also have to specify whether you are jumping to the next label
(forward, f) or to the previous label (backwards, b), e.g.:
.func sub1
sub1: if_something
breq 1f
ret
1: do_something
ret
.endfunc
regards,
Clemens
- Re: [avr-gcc-list] fdevopen() uses calloc?, (continued)