Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #2137
| From | "Charles Richmond" <numerist@aquaporin4.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: Implementing Local Labels in an Assembler |
| Date | 2012-08-31 14:07 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <k1r220$66d$1@dont-email.me> (permalink) |
| References | <k1os71$8om$1@dont-email.me> <k1q3pr$4gj$1@dont-email.me> |
"BartC" <bc@freeuk.com> wrote in message news:k1q3pr$4gj$1@dont-email.me... > > [snip...] [snip...] > [snip...] > > OK, so a label without the special prefix effectively partitions code into > 'functions', although I would be tempted to use a special designator for > this, such as a 'function' directive; I assume you can customise the > syntax of this assembler. > > That last non-$ label (or the 'function' directive if it also has a name), > is used to generate a unique prefix which can be added to the following > $labels. > > This would obviously be done both for $-labels which are actual labels, > and those which are used as operands (jump instructions and such). > > The main problem might be if you want to refer to those $-labels from > outside that block; using a separate 'function' directive would have the > advantage of allowing you to use ordinary labels for this purpose. > The two regular assembly language labels *bounding* the instructions that contain one or more *local* labels... define the scope of those local labels. These local labels can *not* be referenced outside of that scope. However, the *same* local label can appear in multiple "scopes". There's the problem... -- numerist at aquaporin4 dot com
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Implementing Local Labels in an Assembler "Charles Richmond" <numerist@aquaporin4.com> - 2012-08-30 18:15 -0500
Re: Implementing Local Labels in an Assembler Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-08-30 16:35 -0700
Re: Implementing Local Labels in an Assembler James Harris <james.harris.1@gmail.com> - 2012-08-31 00:07 -0700
Re: Implementing Local Labels in an Assembler "BartC" <bc@freeuk.com> - 2012-08-31 11:29 +0100
Re: Implementing Local Labels in an Assembler Nomen Nescio <nobody@dizum.com> - 2012-08-31 18:34 +0200
Re: Implementing Local Labels in an Assembler "BartC" <bc@freeuk.com> - 2012-08-31 20:30 +0100
Re: Implementing Local Labels in an Assembler Anonymous <nobody@remailer.paranoici.org> - 2012-09-02 09:10 +0000
Re: Implementing Local Labels in an Assembler "Charles Richmond" <numerist@aquaporin4.com> - 2012-08-31 14:07 -0500
Re: Implementing Local Labels in an Assembler "BartC" <bc@freeuk.com> - 2012-08-31 20:27 +0100
csiph-web