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

Remove debug printout from PCEAS .incchrpal, plus a bunch of other incremental improvements. #37

Merged
merged 8 commits into from
Apr 11, 2024

Conversation

jbrandwood
Copy link
Collaborator

No description provided.

There is now a permanent hashed-and-numbered list of input files that
have been opened so that file names can be tracked and displayed.

This will be used to track symbol definitions and references.
…ile and

line number, rather than the number of procedures defined that pass, so that
it doesn't change if code is removed after the first pass.
This is going to be needed when stripping unused .procs within a
.procgroup that isn't stripped, or when .ifref is implemented.
The stripping decision has been moved out of proc_reloc(), which is
run just before the final pass, and into a new proc_strip() routine
that is run at the end of the first pass.

Stripped procedures are not printed in the listing file anymore, but
are still assembled into the STRIPPED_BANK which is not output, that
is what I refer to as them being "cloaked".

When PCEAS has decided to run 3 passes, then stripped procedures can
instead be "skipped", i.e. not assembled at all. This allows removal
of unused .procs within a .procgroup, which could not be done before.

Skipping procedures can alter the order and location of symbols that
are defined, and so it requires an extra pass, and it isn't possible
if the start and end of the .proc are wrapped in complex sections of
".if" code.
Error and warning messages are now sent to stderr to make them easier
for an IDE to process, but that can be changed in "defs.h".

Introduce PCEAS to the brave-new-world of 1989's <stdarg.h>!
@jbrandwood jbrandwood merged commit a627890 into pce-devel:master Apr 11, 2024
12 of 13 checks passed
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 participant