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

i686 support? #44

Open
gtoal opened this issue Apr 9, 2020 · 2 comments
Open

i686 support? #44

gtoal opened this issue Apr 9, 2020 · 2 comments

Comments

@gtoal
Copy link

gtoal commented Apr 9, 2020

I can't build on my Ubuntu linux, and I think the reason is that you support x86_64 but not i686.

gtoal@linux:~/src/bic$ ls /usr/lib/gcc
i686-linux-gnu

By the way the build fails in a way that isn't obvious what the cause is - a "cd" failure into non-existent directory i686 in src. (I did try symbolically linking that to x86_64 but that was too trivial a workaround and failed as soon as it started assembling)

Great project, I will have lots of uses for it once it compiles. I used a very similar system with an Algol-like language back in 1977 ( http://history.dcs.ed.ac.uk/archive/os/emas/users/ecslib/emas-a/impis-unpacked/intdoc.txt ) and it has been a frustration that there was nothing equivalent in all the years since. My primary use for it will be to convert a static binary translator (which generates C code from 6809, 6502 or z80 binaries) into a dynamic recompiler. It will need one modification to your system to support but we can discuss that once I have a running bic system!

Graham

@hexagonal-sun
Copy link
Owner

Hi Graham,

Thanks for the request. Your project sounds very interesting! If bic could help, that would be brilliant. i686 support is something that I've been considering (it's always good to add a new architecture).

To that end, I've created an i686 branch where I'll work. I've already added basic support for calling functions with integer arguments and this allows around 85% of the testsuite to pass. I'll look at fixing the failing test cases soon.

Thanks

@gtoal
Copy link
Author

gtoal commented Apr 13, 2020

Thank you! I wasn't expecting such a quick response. I'll test it on my system as soon as you say it's ready.

Graham

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

2 participants