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

Refactor assembler #55

Merged
merged 33 commits into from
Feb 16, 2024
Merged

Refactor assembler #55

merged 33 commits into from
Feb 16, 2024

Conversation

cjvth
Copy link
Member

@cjvth cjvth commented Jan 30, 2024

Reorganize code of cocas into possibly independent modules. Make it easier to localize and fix bugs. Improve some UI features. Fix linter warnings.

  • Separate assembler, object files import/export, linker and common code into modules
  • Move more functions into separate files
  • Build import hierarchy without circular imports
  • Raise different exceptions in different modules
  • Catch errors in main better
  • Print colored errors like before Make assembler modular #1
  • Make file paths in errors clickable in VS Code
  • Rewrite CodeSegmentsInterface and TargetInstructionsInterface to abstract classes
  • Make function and class naming more consistent
  • Fix mess with str and pathlib.Path
  • Try to fix warnings about wrong argument types
  • Ensure that cocas works on older versions of Python (result: cocas works starting with Python 3.9)
  • Write documentation for importable functions and classes

Fixes:

  • Correctly check maximum image size for CdM-8 and for too big individual sections

@cjvth cjvth added the enhancement New feature or request label Jan 30, 2024
@cjvth cjvth marked this pull request as ready for review February 16, 2024 20:23
@Intelix8996 Intelix8996 added this to the Release 0.2.0 milestone Feb 16, 2024
@Intelix8996 Intelix8996 merged commit 19ab6f7 into master Feb 16, 2024
2 checks passed
@Intelix8996 Intelix8996 deleted the assembler-big-refactor branch February 16, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants