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

feat(compiler): produce a developer source map #167

Merged
merged 2 commits into from
Jan 7, 2024
Merged

Conversation

ineedbots
Copy link
Collaborator

No description provided.

@ineedbots
Copy link
Collaborator Author

Needs better main app output path;
Currently, always produces the developer map, needs to make it optional

@ineedbots
Copy link
Collaborator Author

ineedbots commented Jan 6, 2024

the dev_map structure is as follows

#pragma pack(push, 1)
struct dev_map_instruction
{
  u32 codepos;
  position::counter_type line;
  position::counter_type col;
};

struct dev_map
{
  u32 num_instructions;
  dev_map_instruction instructions[num_instructions];
};
#pragma pack(pop)

@xensik
Copy link
Owner

xensik commented Jan 7, 2024

#pragma pack(push, 1)
struct dev_map_instruction
{
  u32 codepos;
  u16 line;
  u16 col;
};

struct dev_map
{
  u32 num_instructions;
  dev_map_instruction instructions[num_instructions];
};
#pragma pack(pop)

updated to u16 for position data

@xensik xensik changed the title Draft: feature(compiler): produce a developer map feat(compiler): produce a developer source map Jan 7, 2024
@xensik xensik merged commit 3896ec0 into dev Jan 7, 2024
14 checks passed
@xensik xensik deleted the feature/dev_map branch January 7, 2024 12:07
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