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

Slinky is getting wrong answers when writing the binary #4

Open
michaelcmartin opened this issue Jan 23, 2016 · 2 comments
Open

Slinky is getting wrong answers when writing the binary #4

michaelcmartin opened this issue Jan 23, 2016 · 2 comments

Comments

@michaelcmartin
Copy link
Contributor

If I create the hello.m test program and use the commands you state on your blog to build it, the linker fails as it attempts to jam the value $3ff8 into a single byte. On Linux, the link succeeds but the value loaded in the binary for the "text" variable is $0705 instead of $c007. Oddly enough, this only appears in the .bin file; the .sym file correctly names the intended locations.

@michaelcmartin
Copy link
Contributor Author

Okay, I've figured this out. The object-code parser relies on a y.tab.h and it has to be the same y.tab.h as the one generated during the macross build. Otherwise evaluation of expressions goes wrong.

A proper fix to this is to reorganize the Makefiles so that macross and slinky are both sharing the header file as appropriate.

@michaelcmartin
Copy link
Contributor Author

I don't have a whole lot of experience with build work, but I think I've been able to strip it down to its minimum reasonable ruleset in the commit above. I don't know if it ends up restricting compatibility any, but I'd hope it doesn't.

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

No branches or pull requests

1 participant