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

support the ';' line separator character, aka statement separator #51

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

wnienhaus
Copy link
Collaborator

I'm now trying to send more smaller PRs - this is the first one that moves us towards being able to assemble all the currently skipped examples from the binutils-esp32ulp test suite (to resolve #49).

The esp32ulp_all.s code has a nop; statement in it, and this commit adds support for the ; which functions as a statement separator. (See the commit message of ce005e3 for more detail).

Side-note: Currently, due to the way labels are handled/detected, there must be a space between a ; and the next statement, if there is another statement on the same line. The way labels are handled is another thing to be fixed (see esp32ulp_all.s:2, where a statement follows the colon without whitespace), so a future commit may address that issue.

binutils-esp32ulp treats the ';' character as a statement separator.
Multiple statement separated by this character are treated as if
each statement was on its own line.

Note: Currently, due to the way labels are detected/handled, there
must be a space between a ';' and the next statement, if there is
another statement on the same line.

This commit contributes to being able to eventually assemble the
esp32ulp_all.s test from binutils-esp32ulp and allows us to deal
with this line: https://github.com/espressif/binutils-esp32ulp/blob/249ec34cc2c9574a86f3f86bbb175a863f988bcf/gas/testsuite/gas/esp32ulp/esp32/esp32ulp_all.s#L108

The compat tests show how more than 1 statement on a line would be
used/handled.
@ThomasWaldmann ThomasWaldmann merged commit e647bcc into micropython:master Sep 28, 2021
@ThomasWaldmann
Copy link
Collaborator

LGTM, merged!

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.

1.0.0 milestone
2 participants