Maratyszcza / Maratyszcza/PeachPy
ALIGN pseudoinstruction does nothing
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.1k
- Forks
- 170
- PR merge metrics
- No merged PRs in 30d
Description
PeachPy appears to support the `ALIGN` directive to align, e.g., loops, but it seems to have no effect on the output.
Since the code generator needs to know the size of instructions, it should have enough information to work out current (relative) offset to the beginning of the function. On the other hand, `Functions` do not seem to have any kind of alignment, so they can start anywhere.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ALIGN pseudoinstruction and the code generator logic that emits function bodies. Check how instruction sizes and the current offset are represented, then compare that with how Functions are placed without alignment. Done means ALIGN changes the generated output so the targeted code begins at the requested boundary.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100