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

Macro instruction expanded into multiple instructions #30

Open
ps-george opened this issue Mar 17, 2017 · 1 comment
Open

Macro instruction expanded into multiple instructions #30

ps-george opened this issue Mar 17, 2017 · 1 comment

Comments

@ps-george
Copy link

Linked to earlier issue #28,

The assembler outputs these warnings:
Warning: macro instruction expanded into multiple instructions

It's because sometimes I'm not technically writing MIPS assembly - using instructions like sge, slt and mul.

The code all works as expected, and obviously there exist 1-to-1 mappings between the macro instructions and their expanded forms, so it's pretty trivial if not a waste of time changing them.

I'm just wondering if it's okay to leave them as they are or will some assemblers (potentially one you'll be using to test with) not recognise macro/pseudo instructions, making the assembly I'm outputting incorrect as it were.

@fpgamy
Copy link

fpgamy commented Mar 25, 2017

I asked the same question (in person) a few days ago and the answer was that pseudo-instructions were allowed (given that it behaves as expected upon linking with gcc).

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

No branches or pull requests

2 participants