Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement local labels (1b, 2f) like in GNU assembler. #107

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

avm
Copy link

@avm avm commented Dec 17, 2024

No description provided.

@privat
Copy link
Collaborator

privat commented Dec 18, 2024

What is the use case of this feature?

@avm
Copy link
Author

avm commented Dec 19, 2024

What is the use case of this feature?

In GNU assembler, 2 use cases:

  1. using in macros to avoid name clashes;
  2. writing quick one-off code (e.g. in a lecture) and not having to invent better, globally unique names.

In RARS, the first use case is covered by label renaming, the second remains relevant, and a third one is added:

  1. writing code in the same style as in the GNU assembler.

Actually it's the third one that prompted me to port this feature (after my students tried to use local labels in RARS programs and failed).

Copy link

Test Results

12 files  ±0  12 suites  ±0   35s ⏱️ ±0s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
24 runs  ±0  24 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6182c2a. ± Comparison against base commit 11f9a9e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants