bic icon indicating copy to clipboard operation
bic copied to clipboard

i686 support?

Open gtoal opened this issue 4 years ago • 2 comments

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

gtoal avatar Apr 09 '20 00:04 gtoal

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

hexagonal-sun avatar Apr 13 '20 10:04 hexagonal-sun

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

gtoal avatar Apr 13 '20 17:04 gtoal