Meta changes from #301 #324

Closed
derppening wants to merge 10 commits from meta-changes-from-issue-301 into master
Collaborator

Various changes that are made during the debugging process for #323 but is not relevant to the fix.

  • Fixed passing strings into C-interop functions
  • Added newline parameter to output_* functions
  • Make whole module optimizer respect optimization flags
Various changes that are made during the debugging process for #323 but is not relevant to the fix. - Fixed passing strings into C-interop functions - Added `newline` parameter to `output_*` functions - Make whole module optimizer respect optimization flags
derppening added 11 commits 2023-09-21 16:21:26 +08:00
Apparently the changes were dropped after rebasing.
We instead output an LLVM bitcode file when the option is specified on
the command-line.
All parameters with a structure type in extern functions are marked as
`byref` instead of `byval`, as most ABIs require the first several
arguments to be passed in registers before spilling into the stack.

`byval` breaks this contract by explicitly requiring all arguments to be
 passed in the stack, breaking interop with libraries written in other
 languages.
- Add `newline` parameter to all output_* functions
- Add `output_str` for printing a string
- Add demo_test.py to test interop
sb10q was assigned by derppening 2023-09-21 16:21:34 +08:00
derppening added a new dependency 2023-09-21 16:21:45 +08:00
sb10q was unassigned by derppening 2023-09-21 16:21:54 +08:00
derppening self-assigned this 2023-09-21 16:21:54 +08:00
derppening requested review from sb10q 2023-09-21 16:21:57 +08:00
derppening added a new dependency 2023-09-21 16:22:17 +08:00
derppening closed this pull request 2023-09-25 11:44:45 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: M-Labs/nac3#324
No description provided.