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

Link order cannot be set #259

Closed
Real-MJoe opened this issue Mar 21, 2023 · 1 comment
Closed

Link order cannot be set #259

Real-MJoe opened this issue Mar 21, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Real-MJoe
Copy link

First of all, many many thanks for the further development on the extension, to all involved.
Unfortunately, the new version 1.8.1 has two major problems, the first of which has been present for some time.

Problem 1:

The files are compiled in the wrong order than I specify. This has unwanted side effects or I want to determine the order deliberately. Until now I had to use a MAKE file for this.

The three files "main.s", asset.s, and startup.s must be compiled in the order "main.s, startup.s, asset.s". In the "main.s" is also the entrypoint. I can set this with the entrypoint switch in task.json.

Unfortunately the files are sorted by name.
Here times the vlink setting:
grafik

Compiling and linking looks like this:
grafik
and
grafik

Compile errror!

If you add a sort-prefix to the files, the files will also be sorted, but according to my wish.

Here is the vlink setting:
grafik

Compiling and linking looks like this:
grafik
and
grafik

All fine now!
Workspace IssueDebugging_(1.8.1).zip

Problem 2

The bigger problem is the handling of breakpoints. These are set incorrectly or not triggered at all.
If you start the project and end up in the debugger ("stopOnEntry": true) and then press F11 to continue to the InitSystem jump, the "function" from the startup.s file is not displayed, but a wrong position in the main.s file.
grafik

If you set a breakpoint in the files asset.s on the function AllocAssetMem, it is not triggered.

The problem does NOT exist with version 1.6, in which the code can be stepped through and debugged properly.
grafik

Workspace IssueDebugging_(1.6).zip

Many greetings

@prb28
Copy link
Owner

prb28 commented Mar 22, 2023

@Real-MJoe, I split this issue in 2, more easy for us to follow.

@prb28 prb28 changed the title two major bugs :/ Link order cannot be set Mar 22, 2023
@prb28 prb28 self-assigned this Mar 22, 2023
@prb28 prb28 added the bug Something isn't working label Mar 22, 2023
@prb28 prb28 added this to the 1.8.2 milestone Mar 22, 2023
prb28 added a commit that referenced this issue Mar 22, 2023
prb28 added a commit that referenced this issue Mar 22, 2023
@prb28 prb28 closed this as completed Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants