Skip to content

Conversation

@OlegPliss
Copy link
Collaborator

@OlegPliss OlegPliss commented Mar 18, 2022

Stanza functions are annotated with FileInfo(filename, line, position). Generate GNU assembler .file/.line directives to specify source locations of the code generated for the functions.

This will only allow to set a break point at function entry file:line. Other file:line locations can be incorrect. The assembler automatically increments the line with each assembly line. Once FileInfo is propagated to each generated assembly instruction, this problem will go away.

Build instructions:

  1. Generate lstanza.s with
    stanza core/stanza.proj compiler/stanza.proj stz/driver -o newstanza
    ./newstanza build-stanza.proj stz/driver -s lstanza.s
  2. Build lstanza executable with scripts/lgfinish.sh. You may need to change PLATFORM_LINUX there.

@OlegPliss OlegPliss requested a review from CuppoJava March 18, 2022 03:11
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.

2 participants